/* FM画面再現テーマ（2026-10-16）。キャプチャと同じ見た目にするため絶対配置。接頭辞 fm- */
body:has(.fm-screen) .fi-topbar,
body:has(.fm-screen) .fi-sidebar,
body:has(.fm-screen) .fi-page-header,
body:has(.fm-screen) .fi-breadcrumbs { display: none !important; }
body:has(.fm-screen) .fi-main { max-width: none !important; padding: 0 !important; margin: 0 !important; }
body:has(.fm-screen) .fi-main-ctn { padding: 0 !important; }
body:has(.fm-screen) .fi-page { padding: 0 !important; }

.fm-screen { background: #dbe3ec; min-height: 100vh; overflow-x: auto; font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif; color: #111; }
.fm-header { background: #2b2b2d; height: 50px; position: relative; color: #fff; min-width: 1028px; }
.fm-canvas { position: relative; width: 1028px; height: 760px; margin: -50px 0 0 0; }
.fm-canvas > * { position: absolute; }
.fm-title { left: 4px; top: 11px; font-size: 19px; font-weight: 600; color: #fff; }
.fm-today { left: 603px; top: 16px; font-size: 14px; font-weight: 700; color: #fff; }
.fm-btn { background: linear-gradient(#e6e6e6, #b9b9b9); border: 1px solid #8e8e8e; border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.35); color: #111; text-align: center; line-height: 1.25; cursor: pointer; display: flex; align-items: center; justify-content: center; white-space: pre-line; padding: 0; font-family: inherit; }
.fm-btn:hover { filter: brightness(1.06); }
.fm-btn:active { filter: brightness(.9); }
.fm-btn[disabled] { opacity: .45; cursor: not-allowed; }
.fm-btn-head { background: linear-gradient(#fff, #e3e3e3); font-size: 18px; }
.fm-lbl { font-size: 12px; color: #111; white-space: nowrap; }
.fm-lbl-s { font-size: 11px; }
.fm-in { background: #fff; border: 1px solid #9aa3ad; border-radius: 3px; height: 22px; text-align: center; font-size: 14px; padding: 0 4px; box-sizing: border-box; color: #111; font-family: inherit; }
.fm-in-green { background: #d9efcf; }
.fm-in-wide { height: 28px; }
.fm-note { color: #c40000; font-size: 11px; line-height: 1.45; white-space: pre-line; }
.fm-rule { height: 0; border-top: 2px solid #9ba3ac; }
.fm-unit { font-size: 12px; }
.fm-sel { background: #fff; border: 1px solid #9aa3ad; border-radius: 3px; height: 22px; font-size: 13px; }
.fm-foot { position: absolute; right: 12px; bottom: 8px; font-size: 11px; }
.fm-foot a { color: #1d4ed8; text-decoration: underline; margin-left: 12px; }

/* ---- タイムカード表（従業員別実績表） ---- */
.fm-tc { background: #fff; min-height: 100vh; padding: 0 0 40px 8px; color: #111; font-size: 13px; }
.fm-tc-top { position: relative; height: 56px; width: 1010px; }
.fm-tc-title { position: absolute; left: 0; top: 8px; font-size: 25px; letter-spacing: 1px; }
.fm-tc-title b { font-weight: 400; margin-left: 28px; }
.fm-tc-btns { position: absolute; right: 0; top: 10px; display: flex; gap: 3px; }
.fm-tc-btns .fm-btn { width: 118px; height: 30px; font-size: 18px; text-decoration: none; background: linear-gradient(#fff, #e6e6e6); }
.fm-tc-ctl { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; padding: 0 0 10px; font-size: 12px; }
.fm-tc-ctl .fm-sel, .fm-tc-ctl .fm-in { height: 24px; }
.fm-tc-card { width: 842px; margin-bottom: 0; break-inside: avoid; }
.fm-tc-head { position: relative; height: 76px; }
.fm-tc-head > * { position: absolute; white-space: nowrap; font-size: 13px; }
.fm-tc-head .l { font-size: 12px; }
.fm-tc table { width: 842px; border-collapse: collapse; table-layout: fixed; }
.fm-tc th { background: #fff; border: 1px solid #777; font-weight: 400; font-size: 14px; line-height: 1.15; height: 33px; padding: 1px 0; text-align: center; }
.fm-tc td { height: 29px; padding: 0; text-align: center; font-size: 13px; border-bottom: 1px solid #bdbdbd; }
.fm-tc td.b { background: #0a3d9c; color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.fm-tc td.r { background: #e0140a; color: #fff; box-shadow: inset 0 0 0 1px #fff; }
.fm-tc tr.hol td { background-color: #dcfce7; }
.fm-tc tr.hol td.b { background-color: #0a3d9c; }
.fm-tc tr.hol td.r { background-color: #e0140a; }
.fm-tc-pay { font-size: 12px; padding: 6px 0 10px; }
.fm-tc-pay table { width: auto; }
.fm-tc-pay th, .fm-tc-pay td { border: 1px solid #aaa; height: 20px; padding: 0 12px; font-size: 12px; }
.fm-tc-badge { background: #d00; color: #fff; font-size: 11px; padding: 0 4px; border-radius: 2px; }
@media print {
    .fm-noprint { display: none !important; }
    .fm-tc { padding: 0; }
}

/* ---- 勤怠_予定実績_確認_リスト ---- */
.fm-cl { background: #fff; min-height: 100vh; overflow-x: auto; }
.fm-cl-head { position: relative; width: 1435px; height: 72px; background: #2b2b2d; color: #fff; }
.fm-cl-head > * { position: absolute; white-space: nowrap; }
.fm-cl-head .t { left: 0; top: 2px; font-size: 22px; }
.fm-cl-head .n { left: 288px; top: 27px; font-size: 12px; }
.fm-cl-head .c { top: 57px; font-size: 13px; }
.fm-cl-head .cy { top: 57px; font-size: 13px; color: #f7e51c; }
.fm-cl-head a.l, .fm-cl-head button.l { top: 12px; background: none; border: 0; color: #f7e51c; font-size: 17px; cursor: pointer; font-family: inherit; text-decoration: none; }
.fm-cl-blk { position: relative; width: 1435px; height: 166px; border-bottom: 1px solid #d6dbe0; background: #fff; }
.fm-cl-blk.ok { background: #d2e5c3; }
.fm-cl-blk.act { background: #b8d0e8; }
.fm-cl-blk .bt.hold { background: #0b4f7d; box-shadow: inset 0 3px 6px rgba(0,0,0,.5); }
.fm-cl-blk > * { position: absolute; white-space: nowrap; }
.fm-cl-blk .b { height: 24px; line-height: 22px; border: 1px solid #9aa0a6; background: #f1f1f1; font-size: 13px; text-align: center; border-radius: 2px; box-sizing: border-box; overflow: hidden; color: #333; }
.fm-cl-blk .b.s { height: 20px; line-height: 18px; font-size: 10px; }
.fm-cl-blk .b.y { background: #f7e51c; }
.fm-cl-blk .b.u { background: #aee3fb; }
.fm-cl-blk .b.p { background: #fcc9bd; }
.fm-cl-blk .b.w { background: #fff; }
.fm-cl-blk .b.l { text-align: left; padding-left: 6px; }
.fm-cl-blk .lb { font-size: 12px; color: #111; }
.fm-cl-blk .rd { font-size: 11px; color: #c40000; line-height: 1.3; white-space: pre-line; }
.fm-cl-blk .cb { width: 14px; height: 14px; border: 1px solid #777; background: #fff; border-radius: 2px; box-sizing: border-box; text-align: center; line-height: 11px; font-size: 11px; }
.fm-cl-blk .x { font-size: 18px; font-weight: 700; line-height: 22px; }
.fm-cl-blk .bt { height: 40px; border: 1px solid #555; border-radius: 3px; color: #fff; font-size: 22px; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; padding: 0; }
.fm-cl-blk .bt[disabled] { opacity: .35; cursor: not-allowed; }
.fm-cl-blk .bt.g { background: #3f7d1e; }
.fm-cl-blk .bt.o { background: #f08a1c; }
.fm-cl-blk .bt.bl { background: #1b86c8; }
.fm-cl-blk .rel { height: 34px; width: 52px; background: #1d4ed8; border: 1px solid #1a3fb0; color: #fff; font-size: 11px; line-height: 1.15; border-radius: 3px; cursor: pointer; padding: 0; font-family: inherit; }
.fm-cl-blk .rel[disabled] { opacity: .35; cursor: not-allowed; }
.fm-cl-blk .pg { font-size: 11px; line-height: 1.15; white-space: normal; padding: 1px 2px; }
.fm-cl-empty { padding: 40px; color: #777; font-size: 15px; }
@media print { .fm-cl-head .l, .fm-cl-blk .bt, .fm-cl-blk .rel { display: none; } }
