/* Local Operate extension: inherit the audit workspace's quiet, compact controls. */
.tcalc { color: #23324a; font: 14px/1.55 "Microsoft YaHei", "PingFang SC", sans-serif; display: grid; gap: 16px; min-width: 0; }
.tcalc header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; }
.tcalc h3, .tcalc h4, .tcalc p { margin: 0; }
.tcalc h3 { font-size: 18px; }
.tcalc h4 { font-size: 16px; }
.tcalc header span, .tcalc-empty { color: #526177; }
.tcalc fieldset { min-width: 0; padding: 0; margin: 0; border: 0; display: grid; gap: 14px; }
.tcalc legend { font-weight: 700; padding: 0 0 12px; }
.tcalc label { display: grid; gap: 5px; min-width: 0; }
.tcalc input:not([type="checkbox"]), .tcalc select, .tcalc textarea { box-sizing: border-box; width: 100%; min-width: 0; min-height: 38px; border: 1px solid #b8c5d6; border-radius: 6px; background: #fff; color: #23324a; padding: 7px 9px; font: inherit; }
.tcalc textarea { resize: vertical; }
.tcalc :is(input, select, textarea, button, summary, [tabindex]):focus-visible { outline: 2px solid #315f97; outline-offset: 3px; }
.tcalc input, .tcalc textarea { caret-color: #315f97; }
.tcalc ::selection { background: #d5e5fa; color: #18243a; }
.tcalc .tcalc-check { display: flex; align-items: flex-start; gap: 8px; }
.tcalc-check input { margin-top: 5px; accent-color: #315f97; }
.tcalc-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 12px; }
.tcalc-steps { display: grid; gap: 12px; }
.tcalc-step { display: grid; grid-template-columns: minmax(100px, 1fr) minmax(140px, 2.5fr) minmax(130px, 1fr) auto; align-items: end; gap: 12px; }
.tcalc-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 12px; }
.tcalc details { min-width: 0; }
.tcalc summary { cursor: pointer; color: #315f97; }
.tcalc details[open] > :not(summary) { margin-top: 10px; }
.tcalc details p { max-width: 72ch; overflow-wrap: anywhere; }
.tcalc code { font-size: 13px; }
.tcalc button { justify-self: start; min-height: 38px; }
.tcalc button:disabled { opacity: .6; cursor: not-allowed; }
.tcalc-status { color: #384d6b; min-height: 22px; }
.tcalc-output { display: grid; gap: 12px; border-top: 1px solid #dbe3ed; padding-top: 18px; }
.tcalc-table { max-width: 100%; overflow: auto; scrollbar-color: #a1b0c3 #f4f6f9; }
.tcalc table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.tcalc th, .tcalc td { padding: 10px 12px; border-bottom: 1px solid #dbe3ed; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.tcalc th { background: #f4f6f9; white-space: nowrap; }
.tcalc td details { max-width: 28ch; }
.tcalc-pagination, .tcalc-history { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.tcalc-history { border-top: 1px solid #dbe3ed; padding-top: 16px; align-items: end; }
.tcalc-history label { flex: 1 1 240px; }
@media (max-width: 640px) {
  .tcalc-controls, .tcalc-step, .tcalc-filter { grid-template-columns: minmax(0, 1fr); }
  .tcalc-step { border-bottom: 1px solid #dbe3ed; padding-bottom: 12px; }
  .tcalc th, .tcalc td { padding: 8px; }
}
