/* SafeLink：ホームページと同じこげ茶・クリーム・オレンジ */
:root { --brown: #2b1a10; --brown2: #3a271a; --orange: #ff7a1a; --cream: #fff8f1; --ink: #2b1a10; --mut: #6b4a36; --line: #e6d8cc; --red: #b3261e; --green: #0b7a50; --blue: #1d6fd6; }
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 17px/1.7 "Noto Sans JP", system-ui, sans-serif; }
h1, h2, h3 { font-family: "Shippori Mincho", "Noto Sans JP", serif; font-weight: 800; line-height: 1.3; margin: 0; }
.anton { font-family: Anton, sans-serif; letter-spacing: .02em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
a { color: inherit; }
.mut { color: var(--mut); } .small { font-size: 14px; } .nw { white-space: nowrap; } .r { text-align: right; }
.warn { color: var(--red); font-weight: 700; } .ok { color: var(--green); font-weight: 700; }
.hidden { display: none !important; }

.top { background: var(--brown); color: var(--cream); padding: 14px clamp(16px, 4vw, 40px); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.top .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.top .brand svg { width: 46px; height: auto; }
.top .brand b { font-family: Anton, sans-serif; font-size: 28px; line-height: 1; font-weight: 400; }
.top .brand b span { color: var(--orange); }
.top .sub { font-size: 12px; font-weight: 700; letter-spacing: .15em; color: #c9b2a2; }
.top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.top .right a, .top .right button { color: var(--cream); background: none; border: 1px solid rgba(255,248,241,.4); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 700; text-decoration: none; min-height: 40px; }

.wrap { max-width: 760px; margin: 0 auto; padding: 22px clamp(16px, 4vw, 32px) 120px; }
.wrap.wide { max-width: 1320px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 10px 22px; border-radius: 999px; border: 2px solid var(--brown); background: #fff; color: var(--brown); font-weight: 700; text-decoration: none; }
.btn.pri { background: var(--brown); color: var(--cream); }
.btn.sun { background: var(--orange); border-color: var(--orange); color: var(--brown); }
.btn.dng { border-color: var(--red); color: var(--red); }
.btn.sm { min-height: 38px; padding: 4px 14px; font-size: 14px; }
.btn.big { min-height: 72px; font-size: 21px; width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.wide-btn { width: 100%; }
label.f { display: block; font-weight: 700; margin: 18px 0 6px; }
label.f small { font-weight: 400; color: var(--mut); margin-left: 6px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number], input[type=date], select, textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-size: 17px; }
textarea { min-height: 90px; resize: vertical; }
.opts { display: grid; gap: 8px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 54px; padding: 8px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.opt input { width: 22px; height: 22px; accent-color: var(--brown); flex: none; }
.opt span { flex: 1; }
.opt:has(input:checked) { border-color: var(--brown); background: #fff3e8; }
.card { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 16px 18px; margin-bottom: 12px; }
.pill { display: inline-block; padding: 1px 12px; border-radius: 99px; font-size: 13px; font-weight: 700; border: 1px solid; white-space: nowrap; }
.steps { display: flex; gap: 6px; margin-bottom: 16px; } .steps i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); } .steps i.on { background: var(--brown); }
.days { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; }
.days button { flex: none; scroll-snap-align: start; width: 76px; min-height: 90px; border-radius: 14px; border: 2px solid var(--line); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; line-height: 1.35; }
.days button b { font-size: 24px; } .days button em { font-style: normal; font-weight: 700; font-size: 17px; }
.days button.on { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.days button[disabled] { opacity: .4; }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.times button { min-height: 60px; border-radius: 12px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 18px; }
.times button em { display: block; font-style: normal; font-weight: 400; font-size: 13px; }
.times button.on { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.times button[disabled] { opacity: .35; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 44px; padding: 6px 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: 15px; }
.chips button.on { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.foot { position: sticky; bottom: 0; background: var(--cream); padding: 12px 0; display: flex; gap: 10px; border-top: 1px solid var(--line); margin-top: 22px; }
.foot .btn { flex: 1; }
dl.kv { display: grid; grid-template-columns: 7.5em 1fr; gap: 6px 14px; margin: 10px 0; }
dl.kv dt { color: var(--mut); font-size: 14px; } dl.kv dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.fare { border: 2px solid var(--line); border-radius: 14px; padding: 12px 16px; margin-top: 18px; background: #fff; }
.fare table { width: 100%; border-collapse: collapse; font-size: 15px; } .fare td:last-child { text-align: right; white-space: nowrap; }
.fare .tot td { border-top: 2px solid var(--line); padding-top: 8px; font-weight: 700; font-size: 19px; }
.lock { display: flex; gap: 10px; align-items: flex-start; background: #fff3e8; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-top: 16px; }
.code { font-family: Anton, sans-serif; font-size: 40px; letter-spacing: .06em; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(30px); opacity: 0; background: var(--brown); color: var(--cream); padding: 12px 20px; border-radius: 12px; font-weight: 700; z-index: 3000; max-width: 92vw; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%); }
.ov { position: fixed; inset: 0; background: rgba(30,16,8,.55); display: grid; place-items: center; z-index: 2500; padding: 16px; }
.dlg { background: #fff; border-radius: 18px; padding: 22px; max-width: 460px; width: 100%; max-height: 90vh; overflow: auto; }
.dlg .row { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px; }
.center { min-height: 60vh; display: grid; place-items: center; text-align: center; }
table.tb { width: 100%; border-collapse: collapse; font-size: 15px; }
.tb th { text-align: left; font-size: 12px; color: var(--mut); padding: 8px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.tb td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tb td small { display: block; color: var(--mut); }
.tb tr.cl { cursor: pointer; } .tb tr.cl:hover td { background: #fff3e8; }
@media (max-width: 640px) { .tb.stack thead { display: none; } .tb.stack tr { display: grid; padding: 8px 0; border-bottom: 1px solid var(--line); } .tb.stack td { border: 0; padding: 2px 0; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ===== ホームページに組み込んだ WEB予約（yoyaku） ===== */
.site-app { background: var(--cream); color: var(--ink); line-height: 1.75; }
.site-app .wrap { max-width: 820px; padding: clamp(56px, 7vw, 100px) clamp(20px, 5vw, 40px) clamp(64px, 8vw, 110px); }
.site-app h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.3; margin: 0 0 16px; }
.site-app .center { min-height: 30vh; }
.site-app .card, .site-app .fare { border-radius: 6px; border-color: #E2D2C4; }
.site-app .lock { background: #FFE8D2; border-radius: 6px; }
.site-app .steps i.on { background: #FF7A1A; }
.site-app .btn.sun { background: #FF7A1A; border-color: #FF7A1A; color: var(--brown); letter-spacing: .06em; }
.site-app .btn.big { min-height: 76px; font-size: 20px; margin-top: 8px; }
.site-app .code { font-size: 48px; color: var(--brown); }
.flow { list-style: none; padding: 0; margin: 0 0 24px; counter-reset: f; display: grid; gap: 0; }
.flow li { counter-increment: f; display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--brown); }
.flow li:last-child { border-bottom: 1px solid var(--brown); }
.flow li::before { content: "0" counter(f); grid-row: span 2; font-family: Anton, sans-serif; font-size: 40px; line-height: 1; color: #B84A00; }
.flow li b { font-size: 18px; } .flow li span { font-size: 14px; color: var(--mut); }
/* 移動時間の概算 */
.est { display: grid; gap: 4px; margin-top: 14px; padding: 14px 16px; border: 2px solid #E2D2C4; border-radius: 6px; background: #fff; }
.est.warn-box { border-color: #FF7A1A; background: #FFF3E8; }
.est-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.est-num { font-size: 34px; line-height: 1.1; color: var(--brown); }

/* 迎車タイマー */
.timer { border-color: #1d6fd6; }
.timer-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.timer-big { font-size: 44px; line-height: 1.1; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.timer dl.kv { margin: 6px 0 12px; }
.tline { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 6px; font-size: 14px; color: var(--ink); } .tline b { font-variant-numeric: tabular-nums; } .tline i { font-style: normal; }

/* 点呼・運行の操作 */
.rc-wait { border-color: #FF7A1A; background: #FFF3E8; }
.tgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.tgrid > div { border: 2px solid var(--line); border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; }
.tgrid > div.on { border-color: #1d6fd6; background: #eef5ff; }
.tgrid span { font-size: 12px; color: var(--mut); } .tgrid b { font-family: Anton, sans-serif; font-weight: 400; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; } .tgrid small { font-size: 11px; color: var(--mut); }
.ops { display: grid; gap: 8px; }
.optlist { display: grid; gap: 6px; margin-top: 6px; }
.optrow { display: grid; grid-template-columns: 1fr 44px 2em 44px; align-items: center; gap: 6px; border: 2px solid var(--line); border-radius: 8px; padding: 4px 8px; background: #fff; }
.optrow.on { border-color: #FF7A1A; background: #FFF3E8; } .optrow span small { margin-left: 6px; color: var(--mut); } .optrow b { text-align: center; font-size: 18px; } .optrow .btn { min-height: 40px; padding: 0; }
.rc-alert { display: block; width: 100%; text-align: left; border-color: #FF7A1A; background: #FFF3E8; cursor: pointer; font: inherit; }
.rc-card { border-color: #FF7A1A; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.tgrid.two { grid-template-columns: 1fr 1fr; } .tgrid.two b { font-size: 40px; }
.tres { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; }
.tres > div { border: 2px solid var(--line); border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; background: #fff; }
.tres > div.on { border-color: #1d6fd6; background: #eef5ff; } .tres span { font-size: 12px; color: var(--mut); } .tres b { font-size: 20px; } .tres small { font-size: 11px; color: var(--mut); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gb { display: inline-block; margin: 2px 0 0 6px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 700; background: #FFE8D2; color: #8a3a00; border: 1px solid #FF7A1A; white-space: nowrap; }
.gb.red { background: #fde8e6; color: #b3261e; border-color: #b3261e; }
.guard.warnc { border-color: #FF7A1A; background: #FFF3E8; } .guard.bad { border-color: #b3261e; background: #fff5f4; } .guard.okc { border-color: #0b7a50; }
.row-btns { display: flex; flex-wrap: wrap; gap: 6px; }
/* ドライバー：日常点検・乗務記録 */
.dtabs { margin: 4px 0 14px; } .dtabs button { min-height: 44px; }
ol.pre { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
ol.pre li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; border: 2px solid var(--line); border-radius: 8px; padding: 8px 10px; }
ol.pre li span { flex: 1; min-width: 12em; font-weight: 700; } ol.pre li.done { border-color: #0b7a50; } ol.pre li.bad { border-color: #b3261e; }
h3.ig { font-size: 15px; margin: 14px 0 6px; color: #B84A00; }
.irow { display: flex; gap: 10px; align-items: center; justify-content: space-between; border: 2px solid var(--line); border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; background: #fff; }
.irow span { flex: 1; font-size: 15px; } .irow span b { display: inline-block; min-width: 1.8em; color: var(--mut); }
.irow.ok { border-color: #0b7a50; } .irow.ng { border-color: #b3261e; background: #fff5f4; }
.seg { display: flex; gap: 4px; flex: none; } .seg button { min-width: 56px; min-height: 44px; border-radius: 8px; border: 2px solid var(--line); background: #fff; font: inherit; font-weight: 700; }
.seg button.on { background: #0b7a50; border-color: #0b7a50; color: #fff; } .seg button.on.ng { background: #b3261e; border-color: #b3261e; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.tb tr.tot td { border-top: 2px solid var(--ink); }
@media print { header.top, nav.chips, .rc-alert, .btn, input[type=month], #toast, .ov { display: none !important; } body { background: #fff; } .wrap.wide { max-width: none; padding: 0; } }
h3.isec { font-size: 17px; margin: 18px 0 2px; padding: 6px 10px; background: var(--brown); color: var(--cream); border-radius: 6px; }
.seg button.on.na { background: #6b4a36; border-color: #6b4a36; color: #fff; }
.bcard { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.bcard .bopen { flex: 1; min-width: 14em; text-align: left; background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; display: grid; gap: 2px; }
.bcard .btn.sm { min-height: 44px; }
details.card summary { cursor: pointer; }

/* 売上（日報・月の表） */
.report .rp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.report .kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.report .kpis div { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.report .kpis b { display: block; font-size: 22px; line-height: 1.3; }
.report .kpis .hot { border-color: #FF7A1A; background: #fff1e6; }
.tb.rp td, .tb.rp th { font-size: 13px; padding: 7px 6px; }
.tb.rp td small { display: inline; }
.sun0 { color: #b3261e; } .sat0 { color: #1d5fb8; }
.rp-sign { display: none; }
@page rp { size: A4 landscape; margin: 10mm; }
@media print {
  .noprint, input[type=date], .drawer, aside { display: none !important; }
  .report { page: rp; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .tb.rp td, .tb.rp th { font-size: 10px; padding: 4px 5px; }
  .tb.rp tr { break-inside: avoid; }
  .report .kpis b { font-size: 16px; }
  .rp-sign { display: flex; justify-content: flex-end; gap: 0; margin-top: 18px; }
  .rp-sign span { width: 110px; height: 44px; border: 1px solid #2b1a10; font-size: 9px; padding: 3px 5px; }
}

.steplab { display: flex; gap: 6px; margin: -8px 0 14px; font-size: 13px; font-weight: 700; color: var(--mut); }
.steplab span { flex: 1; } .steplab span.on { color: var(--ink); }

/* ===== 帳票（A4）のプレビューと印刷 ===== */
.pv { position: fixed; inset: 0; z-index: 300; background: #5b4a3f; overflow: auto; }
.pv-bar { position: sticky; top: 0; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 10px 16px; background: #2b1a10; color: #fff8f1; }
.pv-bar b { font-size: 17px; } .pv-note { flex: 1; min-width: 16em; font-size: 13px; opacity: .85; } .pv-btns { display: flex; gap: 8px; } .pv-btns .btn { min-height: 44px; }
.pv-pages { padding: 16px 0 40px; }
.a4 { width: 210mm; height: 297mm; margin: 0 auto 16px; padding: 11mm 12mm; box-sizing: border-box; background: #fff; color: #000; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,.35);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif; font-size: 10pt; line-height: 1.35; display: flex; flex-direction: column; gap: 3mm; }
.a4 h1 { font-size: 20pt; margin: 0; font-weight: 700; letter-spacing: .1em; } .a4 h1 small { font-size: 11pt; letter-spacing: 0; margin-left: 2mm; font-weight: 400; }
.a4 h2 { font-size: 11pt; margin: 2mm 0 0; }
.a4 .hd { display: flex; justify-content: space-between; align-items: stretch; gap: 6mm; }
.a4 .titlebox { flex: 1; border: 1.2px solid #000; display: flex; align-items: center; justify-content: center; min-height: 20mm; }
.a4 .sub { display: flex; justify-content: space-between; gap: 6mm; font-size: 11pt; margin: 0; }
.ft { width: 100%; border-collapse: collapse; table-layout: auto; }
.ft th, .ft td { border: 1px solid #000; padding: .8mm 1.4mm; vertical-align: middle; font-size: 9.5pt; }
.ft th { background: #f1ece7; font-weight: 700; text-align: center; white-space: nowrap; }
.ft .c { text-align: center; } .ft .r { text-align: right; white-space: nowrap; } .ft .sm, .a4 .sm { font-size: 8pt; } .ft th.s { font-weight: 400; background: #faf7f4; }
.ft.seal { width: auto; } .ft.seal th { font-size: 8pt; width: 19mm; padding: .5mm; } .ft.seal td { height: 15mm; }
.ft.info th { width: 22mm; text-align: left; } .ft.info td { min-width: 40mm; }
.ft.info2 th { width: 22mm; } .ft.info2 td { height: 7.5mm; }
.ft.grid td { height: 6.2mm; }
.tenko .ft.grid td, .tenko .ft.grid th { font-size: 7.8pt; padding: .3mm .8mm; } .tenko .ft.grid td { height: 5.55mm; }
.tenko .ft.foot td, .tenko .ft.foot th { font-size: 7.8pt; }
.daily .trips td { height: 8.6mm; } .ft.sum td, .ft.sum th { height: 7.5mm; }
.ft.note td { height: 16mm; vertical-align: top; } .daily .ft.note td { height: 22mm; }
.insp .ins td { height: 8.6mm; } .insp .grp { font-weight: 700; font-size: 7.6pt; line-height: 1.2; text-align: center; background: #faf7f4; } .insp .res { font-size: 11pt; }
.a4 .ng { color: #b3261e; }
.a4 .small-note { font-size: 8pt; margin: 0; color: #333; }
.hanko { margin-left: 3mm; color: #555; }
.ed { display: inline-block; min-width: 8mm; border-bottom: 1px dashed #b98a54; background: #fff4c7; outline: none; padding: 0 1mm; }
.ed:focus { background: #ffe58a; }
/* 領収書 */
.receipt { gap: 0; justify-content: flex-start; }
.receipt .rc { flex: none; height: 140mm; }
.rc-rest { flex: 1; display: flex; align-items: flex-end; } .rc-rest p { font-size: 7.5pt; color: #888; margin: 0; }
@media print { .rc-rest { visibility: hidden; } }
.a4.fit > .fitbox { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 3mm; }
.rc { flex: 1; border: 1.4px solid #000; padding: 7mm 9mm; display: flex; flex-direction: column; gap: 3mm; }
.rc-top { display: flex; justify-content: space-between; font-size: 9.5pt; text-align: right; } .rc-copy { border: 1px solid #000; padding: .5mm 3mm; height: fit-content; text-align: center; }
.rc h1 { text-align: center; font-size: 24pt; letter-spacing: .4em; }
.rc-name { font-size: 15pt; margin: 0; border-bottom: 1.4px solid #000; display: flex; justify-content: space-between; align-items: end; padding-bottom: 1mm; } .rc-name .ed { font-size: 15pt; }
.rc-amt { display: flex; align-items: center; gap: 5mm; justify-content: center; border: 1.4px solid #000; background: #f6f1ec; padding: 2mm; } .rc-amt b { font-size: 24pt; letter-spacing: .04em; } .rc-amt small { font-size: 18pt; margin-left: 1mm; }
.rc-tada { margin: 0; font-size: 10.5pt; line-height: 1.8; }
.rc-bot { display: flex; justify-content: space-between; gap: 6mm; align-items: flex-end; margin-top: auto; }
.rc-bot > div:first-child { display: flex; gap: 4mm; align-items: flex-end; }
.ft.rdet { width: auto; } .ft.rdet th, .ft.rdet td { font-size: 9pt; }
.stamp { width: 20mm; height: 24mm; border: 1px dashed #000; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 8pt; }
.rc-co { position: relative; font-size: 9pt; line-height: 1.55; padding-right: 18mm; min-height: 22mm; } .rc-co b { font-size: 11pt; }
.hanko-box { position: absolute; right: 0; top: 2mm; width: 15mm; height: 15mm; border: 1px solid #b3261e; color: #b3261e; display: flex; align-items: center; justify-content: center; font-size: 8pt; border-radius: 50%; }
.cut { text-align: center; font-size: 8pt; color: #666; border-top: 1px dashed #666; margin: 4mm 0; line-height: 0; padding-top: 0; } .cut { line-height: 1; padding-top: 1mm; border-top-style: dashed; }
.ledger .led th { width: 30mm; text-align: left; } .maint .mt td { height: 9.6mm; } .dcheck .dc td { height: 7mm; }
@page a4p { size: A4 portrait; margin: 0; }
@media print {
  body.pv-on > *:not(#pv) { display: none !important; }
  body.pv-on { background: #fff !important; padding: 0 !important; }
  .pv { position: static; background: #fff; overflow: visible; }
  .pv-bar { display: none !important; }
  .pv-pages { padding: 0; zoom: 1 !important; }
  .a4 { page: a4p; margin: 0; box-shadow: none; break-after: page; }
  .a4:last-child { break-after: auto; }
  .ed { background: none !important; border-bottom-color: transparent; }
  .ft th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.prt { display: grid; gap: 8px; } .prt-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .prt-l { min-width: 11em; font-weight: 700; } .prt select, .prt input { max-width: 220px; min-height: 40px; }

.tenko .hd h1 { white-space: nowrap; }
.tenko .hd { gap: 8mm; } .tenko .sub { margin-top: 1.5mm; }
/* 記録簿（1件1枚・一覧） */
.rec-body { display: flex; gap: 4mm; align-items: flex-start; flex: 1; min-height: 0; }
.rec-t th { width: 46mm; text-align: left; font-size: 9pt; vertical-align: top; } .rec-t td { font-size: 10pt; height: 7.2mm; overflow-wrap: anywhere; } .rec-t td.long { height: 17mm; vertical-align: top; }
.photo { flex: none; width: 30mm; height: 40mm; border: 1px dashed #000; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 9pt; order: 2; } .photo span { font-size: 7pt; }
.lst-t td { font-size: 8.6pt; height: 9.6mm; overflow-wrap: anywhere; } .lst-t th { font-size: 8.6pt; }
/* 車載プリンター（Bluetooth）の領収書 */
.tp { position: fixed; inset: 0; z-index: 320; background: rgba(20,10,5,.6); display: flex; justify-content: center; align-items: flex-start; overflow: auto; padding: 12px; }
.tp-box { background: #fff; border-radius: 16px; padding: 14px 16px 18px; width: min(100%, 460px); }
.tp-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .tp-head b { font-size: 18px; }
.tp-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.tp-paper { margin: 10px auto 0; background: #eee; padding: 10px; border-radius: 10px; max-height: 46vh; overflow: auto; }
.tp-paper img { display: block; width: 100%; max-width: 300px; margin: 0 auto; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.2); image-rendering: auto; }
.tp .btn.big { width: 100%; margin-top: 12px; }
.linkbtn { background: none; border: 0; padding: 0; color: #b84a00; text-decoration: underline; font: inherit; cursor: pointer; min-height: 32px; }
/* 記録簿の画像 */
.rimg { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; }
.rimg-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.rimg-list figure { margin: 0; width: 160px; display: grid; gap: 6px; }
.rimg-list img, .rimg-list .ph { width: 160px; height: 120px; object-fit: contain; background: #f3ebe4; border-radius: 8px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--mut); }
.rimg-list select { min-height: 40px; font-size: 14px; }
.rimg-add { width: 160px; height: 120px; border: 2px dashed var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-weight: 700; color: #b84a00; }
.rimg-add input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rimg-add:focus-within { outline: 3px solid var(--sun, #ff7a1a); }
.photo.has { padding: 0; border-style: solid; overflow: hidden; } .photo.has img { width: 100%; height: 100%; object-fit: cover; }
.imgp .imgbox { margin: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; border: 1px solid #000; padding: 2mm; }
.imgp .imgbox img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.imgp .imgbox figcaption { font-size: 9pt; text-align: center; padding-top: 1mm; }
/* 健康診断書のアップロード */
.btn.big-up { font-size: 18px; min-height: 56px; padding: 12px 26px; }
.rimg.rfirst { border-top: 0; padding-top: 4px; margin-top: 10px; }
.rdrop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; margin-top: 8px; padding: 22px 16px; border: 3px dashed #ff7a1a; border-radius: 16px; background: #fff7ef; cursor: pointer; }
.rdrop b { font-size: 19px; color: #b84a00; } .rdrop span { font-size: 15px; } .rdrop small { font-size: 13px; color: var(--mut); }
.rdrop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rdrop:focus-within { outline: 3px solid #2b1a10; outline-offset: 2px; } .rdrop.over { background: #ffe8d2; border-style: solid; }
.ph.pdf { flex-direction: column; gap: 4px; background: #fdecec; color: #b3261e; } .ph.pdf b { font-size: 22px; } .ph.pdf span { font-size: 11px; color: #555; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv { position: fixed; inset: 0; z-index: 310; background: rgba(20,10,5,.65); display: flex; justify-content: center; align-items: flex-start; overflow: auto; padding: 16px; }
.rv-box { background: #fff; border-radius: 16px; padding: 14px 16px 20px; width: min(100%, 900px); }
.rv-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 10px; } .rv-head b { font-size: 18px; }
.rv-body { display: grid; gap: 12px; } .rv-img { margin: 0; } .rv-img img { width: 100%; max-height: 80vh; object-fit: contain; background: #f3ebe4; border-radius: 8px; } .rv-img figcaption { text-align: center; font-size: 14px; }
.rv-pdf { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border: 2px solid var(--line); border-radius: 12px; } .rv-pdf b { color: #b3261e; font-size: 20px; } .rv-pdf span { flex: 1; min-width: 10em; }
/* 通知のボタン */
header .nt-off { background: #ff7a1a !important; color: #2b1a10 !important; border-color: #ff7a1a !important; font-weight: 800; }
header .nt-on { opacity: .85; }
@media (max-width: 700px) { .hide-sp { display: none !important; } }
/* 事務所画面をスマホで使うとき */
@media (max-width: 700px) {
  .kpis-o { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; } .kpis-o .card { padding: 8px 12px; } .kpis-o .anton { font-size: 22px !important; }
  nav.chips:not(.dtabs) { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  nav.chips:not(.dtabs) button { flex: none; }
}

/* パスワード欄の「表示」ボタン */
.pwrap{position:relative}
.pwrap input{padding-right:78px}
.eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:#fff;font-weight:700;font-size:14px;cursor:pointer}

/* 乗務記録：給油・オイル・交換 */
.sup .grid2{margin-top:4px}
.sup-row{display:grid;grid-template-columns:minmax(96px,120px) 1fr auto;gap:6px;margin-top:6px;align-items:center}
.sup-row .btn{min-height:44px;padding:0 14px}

/* 印刷プレビュー：ページごとの見出しと「このページを削除」（印刷されない） */
.pv-pg{display:flex;align-items:center;justify-content:space-between;gap:10px;width:210mm;max-width:100%;margin:14px auto 4px;font-weight:700;color:#fff}
.pv-pg .btn{background:#fff}
@media print{.pv-pg{display:none!important}}
/* 帳簿のまとめて削除 */
.dbar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}
.dcb{width:34px;text-align:center}
.dcb input{width:20px;height:20px;min-height:0;margin:0;accent-color:#b3261e}
/* 車両台帳 */
.led-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}
.led-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:0 14px}
.led-t input{min-height:40px;min-width:110px}
.led-l{margin-top:12px}
.dcb input[type=checkbox]{width:22px!important;height:22px!important;min-height:0!important;padding:0!important;border-radius:4px}
.led-t .btn,.tb .btn.dng{white-space:nowrap}
/* アカウントの種類 */
.pill.rl-admin{background:#2b1a10;color:#fff;border-color:#2b1a10}
.pill.rl-desk{background:#1d6fd6;color:#fff;border-color:#1d6fd6}
.pill.rl-driver{background:#fff3e8;color:#2b1a10;border-color:#ff7a1a}
.acct tr.sess > td{background:#fff8f1}
/* 配車の到着見込み */
.plan{margin-top:12px;background:#fffdf9}
.plan-t td{vertical-align:top}
.plan-t tr.sel td{background:#fff3e8}
/* ドライバー：遅延・事故 */
.late-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:8px;margin:12px 0}
.late-grid .btn{min-height:56px;font-size:18px}
.late-btn{border-color:#b3261e;color:#b3261e;background:#fff}
.acc-btn{min-height:56px}
.late-grid{grid-template-columns:repeat(auto-fill,minmax(84px,1fr))}
.late-grid .btn{white-space:nowrap;padding:0 6px;border-radius:14px;min-height:52px}
