/* Film Processing 页（film.html）：上传、检查、寄 Download Link 信都在网站（老板 2026-11-14 定）。
   先载 admin.css（页首、标志、按钮、标签颜色、确认框、圆点跟发件台共用），这里只放这一页自己的（class 都用 fp- 开头）。
   老板 2026-11-14 选样稿 C「一行四个圆圈」：一天一段（开单日期），一行＝一封信；圆圈＝付款 → 扫描 → contact sheet → 寄信。 */

/* 页首两个分页（.ad-nav）、出问题的红字（.ad-prob）、问题列表都在 admin.css，跟发件台一样，这里不另外写 */

/* ── 提示（还没接上 info@、读不到表格）── */
.fp-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; padding: 12px 16px; border: 1px solid rgba(200, 52, 31, .35);
  border-radius: 6px; font-size: 13px; line-height: 1.55; color: var(--brand); }
.fp-banner .ic { width: 16px; height: 16px; }
.fp-banner span { flex: 1; min-width: 220px; }
.fp-banner.amber { border-color: rgba(181, 131, 42, .45); color: var(--amber); }

/* ── 工具列：分页筛选、检查时间、搜寻、Check again ── */
.fp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 16px; margin-top: 34px; }
.fp-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.fp-tabbtn { appearance: none; display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 15px; border: 1px solid transparent; border-radius: 999px;
  font: 500 11px/1 'Poppins', Helvetica, Arial, sans-serif; letter-spacing: .12em; color: var(--text); cursor: pointer; transition: border-color .15s, opacity .15s; }
.fp-tabbtn .n { font-weight: 400; letter-spacing: 0; font-variant-numeric: tabular-nums; opacity: .7; }
.fp-tabbtn.all { border-color: var(--line2); background: none; color: var(--muted); }
.fp-tabbtn.all:hover { border-color: var(--muted); color: var(--text); }
.fp-tabbtn.t-c41 { background: #f4e4d4; color: #97521d; }
.fp-tabbtn.t-ddx { background: #e4e0da; color: var(--text); }
.fp-tabbtn.t-ecn2 { background: #dbe9e5; color: #2d625c; }
.fp-tabbtn.t-e6 { background: #dfe5f0; color: #33538a; }
.fp-tabbtn:not(.all):hover { border-color: currentColor; }
.fp-tabbtn[aria-pressed="true"] { border-color: currentColor; box-shadow: inset 0 0 0 .5px currentColor; }
.fp-tabbtn.all[aria-pressed="true"] { border-color: var(--text); background: var(--text); color: var(--card); box-shadow: none; }
.fp-tabbtn:disabled { opacity: .45; cursor: default; }
.fp-checked { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.fp-checked b { font-weight: 400; color: var(--text); font-variant-numeric: tabular-nums; }
.fp-checked.busy { color: #97521d; }
.fp-chips { margin-top: 14px; }

/* ── 表：一天一段、一行一封信 ── */
.fp-table { width: 100%; margin-top: 6px; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.fp-table .c-cb { width: 34px; }
.fp-table .c-tabs { width: 150px; }
.fp-table .c-steps { width: 206px; }
.fp-table .c-status { width: 172px; }
.fp-table .c-act { width: 122px; }
.fp-table thead th { padding: 12px 8px 9px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap;
  font-size: 9.5px; font-weight: 400; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fp-table td { height: 44px; padding: 0 8px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-table th.cb, .fp-table td.cb { padding: 0 0 0 4px; }
.fp-table td.act { padding-right: 0; text-align: right; overflow: visible; }
.fp-table tr.fp-tr { cursor: pointer; }
.fp-table tbody tr.fp-tr:hover td { background: rgba(237, 231, 218, .55); }
.fp-table tr.fp-tr.sel td { background: rgba(237, 231, 218, .75); }
.fp-table tr.fp-tr.open td { background: var(--hover); border-bottom-color: transparent; }
.fp-table tr.fp-tr.sent .ad-name, .fp-table tr.fp-tr.sent .ad-name b { color: var(--soft); }
.fp-table td.empty { height: auto; padding: 40px 0; text-align: center; white-space: normal; color: var(--muted); cursor: default; }
.fp-day th { padding: 26px 0 8px; border-bottom: 1px solid var(--line2); text-align: left; font-size: 10.5px; font-weight: 500; line-height: 1.4;
  letter-spacing: .16em; text-transform: uppercase; color: var(--text); }
.fp-day th span { font-weight: 400; color: var(--muted); }
.fp-table tbody .fp-day:first-child th { padding-top: 16px; }
/* 「Film Processing」那一栏：一个分页一行「C41 2 rolls」。网站的单一个链接可能有两个分页（C41＋DDX），就上下叠两行，标签对齐；
   三个以上放不下的，看滑鼠停上去的说明或 Details */
.fp-table .fp-rollcount { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; row-gap: 2px; height: auto; max-height: 42px; }
.fp-table .fp-rollcount .ad-tab { min-width: 44px; } /* 四个标签一样宽（ECN2 最宽），后面的「2 rolls」上下对成一直线 */
/* 四个字各自对准下面的圆圈：圆圈 28px、中间的线 26px，一共 190px */
.fp-steplabels { display: flex; justify-content: space-between; width: 190px; }
.fp-steplabels span { display: flex; justify-content: center; width: 28px; white-space: nowrap; }

/* 勾选框 */
.fp-cb { appearance: none; display: inline-block; flex: none; width: 16px; height: 16px; margin: 0; padding: 0; border: 1.3px solid var(--line2); border-radius: 4px;
  background: var(--card); vertical-align: middle; cursor: pointer; transition: border-color .15s; }
.fp-cb:hover:not(:disabled) { border-color: var(--muted); }
.fp-cb:checked { border-color: var(--text); background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.4 2.6 2.6L12 5.6' fill='none' stroke='%23fdfcfa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.fp-cb:indeterminate { border-color: var(--text); background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8h7' fill='none' stroke='%23fdfcfa' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.fp-cb:disabled { opacity: .3; cursor: default; }
.fp-cb.bad { border-color: var(--brand); }

/* 四个圆圈：深色＋小绿点＝好了，红＝有问题，黄＝差一点，浅＝还没，虚线＝这张单不用（例如 E6 没有 contact sheet） */
.fp-steps { display: inline-flex; align-items: center; vertical-align: middle; }
.fp-st { position: relative; flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1.3px solid var(--line2); border-radius: 50%;
  background: var(--bg); color: var(--soft); }
.fp-st .ic { width: 14px; height: 14px; }
.fp-st::after { content: ''; position: absolute; top: -2px; right: -2px; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg); display: none; }
.fp-st.done { border-color: var(--text); color: var(--text); }
.fp-st.done::after { display: block; background: var(--ok); }
.fp-st.bad { border-color: var(--brand); color: var(--brand); }
.fp-st.bad::after { display: block; background: var(--brand); }
.fp-st.warn { border-color: var(--amber); color: var(--amber); }
.fp-st.warn::after { display: block; background: var(--amber); }
.fp-st.na { border-style: dashed; color: var(--line2); }
.fp-rail { flex: none; width: 26px; height: 1px; background: var(--line2); }
.fp-rail.done { background: var(--text); }
tr.fp-tr.open .fp-st, tr.fp-tr.sel .fp-st { background: transparent; }

/* 一句状态 */
.fp-status { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; color: var(--muted); }
.fp-status.ok { color: var(--ok); }
.fp-status.bad { color: var(--brand); }
.fp-status.warn { color: var(--amber); }
.fp-status.soft { color: var(--soft); }

.fp-acts { display: inline-flex; align-items: center; justify-content: flex-end; gap: 2px; }
.fp-sendbtn { appearance: none; display: inline-flex; align-items: center; gap: 7px; height: 30px; margin-right: 4px; padding: 0 13px; border: 1px solid var(--line2);
  border-radius: 999px; background: none; font: 400 12px/1 'Poppins', Helvetica, Arial, sans-serif; color: var(--text); cursor: pointer; transition: border-color .15s; }
.fp-sendbtn:hover { border-color: var(--text); }
.fp-sendbtn .ic { width: 15px; height: 15px; }

/* 一行下面展开：每一卷几张、哪一行、付款、检查结果 */
.fp-detail td { height: auto; padding: 0; white-space: normal; overflow: visible; background: var(--card); cursor: default; }
.fp-dbox { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px 44px; padding: 20px 22px 22px 46px; }
.fp-dbox .caps { display: block; margin-bottom: 8px; color: var(--muted); }
.fp-rolls { margin: 0; padding: 0; list-style: none; }
.fp-rolls li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 44px; align-items: center; gap: 12px; min-height: 34px; padding: 5px 0;
  border-bottom: 1px solid var(--line); font-size: 13px; }
.fp-rolls li:first-child { border-top: 1px solid var(--line); }
.fp-rolls .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-rolls .k { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fp-rolls .cs { display: inline-flex; align-items: center; justify-content: flex-end; gap: 3px; color: var(--ok); }
.fp-rolls .cs .ic { width: 15px; height: 15px; }
.fp-rolls .cs.warn { color: var(--amber); }
.fp-rolls .cs.na { color: var(--soft); }
.fp-rolls li.miss { grid-template-columns: minmax(0, 1fr); color: var(--amber); }
.fp-rolls li.none { grid-template-columns: minmax(0, 1fr); color: var(--muted); }
.fp-why { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.fp-why p { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--brand); }
.fp-why p.warn { color: var(--amber); }
.fp-why .ic { width: 15px; height: 15px; margin-top: 2px; }
.fp-kv { display: grid; grid-template-columns: 92px minmax(0, 1fr); margin: 0; font-size: 12.5px; }
.fp-kv dt { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 9.5px; line-height: 1.9; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.fp-kv dd { margin: 0; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.fp-kv dt:first-of-type, .fp-kv dd:first-of-type { border-top: 1px solid var(--line); }
.fp-kv .ad-where { min-width: 0; margin-right: 10px; font-size: 12.5px; color: var(--text); }
.fp-kv .bad { color: var(--brand); }
.fp-kv .warn { color: var(--amber); }
.fp-dbox .row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fp-dbox .ad-btn .ic { width: 15px; height: 15px; }

/* 下面一条：勾了几笔、寄（跟着画面底部） */
.fp-selbar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px;
  padding: 14px 0 calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--text); background: var(--bg); }
.fp-selbar p { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.fp-selbar p span { color: var(--muted); }
.fp-selbar .row { display: flex; flex: none; gap: 10px; }

/* 寄信确认框（在 admin.css 的 .ad-dialog 里） */
.ad-dialog.fp-wide { width: min(560px, calc(100vw - 32px)); }
.fp-mlist { margin-top: 18px; border-top: 1px solid var(--line); max-height: min(46vh, 420px); overflow-y: auto; }
.fp-mrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 14px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.fp-mrow .who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.fp-mrow .who span { color: var(--muted); }
.fp-mrow .em { grid-column: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.fp-mrow .em.warn { color: var(--amber); white-space: normal; }
.fp-mrow .em.bad { color: var(--brand); white-space: normal; }
.fp-mrow .tags { grid-column: 2; grid-row: 1 / 3; display: flex; align-items: center; gap: 6px; }
.fp-mrow .tags .ic { width: 15px; height: 15px; color: var(--muted); }
.fp-mrow .res { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.fp-mrow .res .ic { width: 15px; height: 15px; }
.fp-mrow .res.ok { color: var(--ok); }
.fp-mrow .res.bad { color: var(--brand); }
.fp-mrow .res.busy .ic { animation: ad-spin .8s linear infinite; }
.fp-unpaid { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid rgba(200, 52, 31, .4); border-radius: 999px;
  font-size: 11px; color: var(--brand); white-space: nowrap; }
.fp-ack { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(200, 52, 31, .35); border-radius: 6px;
  font-size: 12.5px; line-height: 1.55; color: var(--brand); cursor: pointer; }
.fp-ack b { font-weight: 500; }
.ad-dlg .fp-ack .fp-cb { display: inline-block; width: 16px; height: 16px; margin: 2px 0 0; padding: 0; border-radius: 4px; border-color: var(--brand); background-color: var(--card); }
.ad-dlg .fp-ack .fp-cb:checked { border-color: var(--brand); background-color: var(--brand); }
.fp-dnote { margin-top: 14px; font-size: 12px; line-height: 1.55; color: var(--muted); }
.ad-dlg .fp-dbad { color: var(--brand); } /* 寄信时登录过期：「You were signed out, so nothing was sent…」红字 */

/* ── 手机：一行两层（上：勾选、单号名字、Send／⋯；下：四个圆圈＋一句状态）── */
@media (max-width: 760px) {
  .fp-bar { margin-top: 26px; }
  .fp-bar .ad-tools { width: 100%; }
  .fp-bar .ad-search { flex: 1; }
  .fp-bar .ad-search input { width: 100%; }
  .fp-tabs { flex-wrap: nowrap; width: 100%; overflow-x: auto; padding-bottom: 2px; }
  .fp-tabbtn { flex: none; padding: 0 13px; }
  .fp-chips { flex-wrap: nowrap; overflow-x: auto; }
  .fp-chips .ad-chip { flex: none; }
  .fp-checked { order: 3; }
  .fp-table, .fp-table tbody, .fp-table tr { display: block; }
  .fp-table colgroup, .fp-table thead { display: none; }
  .fp-table tr.fp-tr { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "cb name act" "cb line line";
    align-items: center; column-gap: 10px; row-gap: 6px; padding: 10px 0 11px 2px; border-bottom: 1px solid var(--line); }
  .fp-table tr.fp-tr td { display: block; height: auto; min-width: 0; padding: 0; border: 0; overflow: visible; }
  .fp-table tbody tr.fp-tr:hover td, .fp-table tr.fp-tr.sel td, .fp-table tr.fp-tr.open td { background: none; }
  .fp-table tr.fp-tr.sel, .fp-table tr.fp-tr.open { background: rgba(237, 231, 218, .7); }
  .fp-table tr.fp-tr td.cb { grid-area: cb; align-self: start; padding-top: 3px; }
  .fp-table tr.fp-tr td.nm { grid-area: name; overflow: hidden; }
  .fp-table tr.fp-tr td.tabs { display: none; }
  .fp-table tr.fp-tr td.steps { grid-area: line; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
  .fp-table tr.fp-tr td.status { display: none; }
  .fp-table tr.fp-tr td.act { grid-area: act; margin-top: -4px; }
  .fp-mstatus { display: inline-flex !important; }
  .fp-table tr.fp-detail { display: block; }
  .fp-table tr.fp-detail td { display: block; }
  .fp-dbox { grid-template-columns: minmax(0, 1fr); padding: 16px 14px 18px; }
  .fp-day th { display: block; }
  .fp-table td.empty { display: block; }
  .fp-rail { width: 14px; }
  .fp-st { width: 26px; height: 26px; }
  .fp-selbar { flex-direction: column; align-items: stretch; gap: 10px; }
  .fp-selbar .row .ad-btn { flex: 1; }
  .fp-sendbtn { padding: 0 11px; }
}
.fp-mstatus { display: none !important; }
@media (max-width: 760px) { .fp-mstatus { display: inline-flex !important; } }
