/* Operator timer presentation only. Load after styles.css. Button order and
   labels belong to renderOperationTimerPanel: Start/Resume, Pause, Finish.
   All changes are screen-only; timer state and print layouts remain untouched. */
@media screen {
  .operation-timers-panel {
    min-width: 0;
    font-family: "Segoe UI", Arial, sans-serif;
  }
  .operation-timers-panel .operation-timer-row { min-width: 0; }
  .operation-timers-panel .operation-timer-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.45fr);
    align-items: center;
    width: 100%;
    min-width: 0;
    margin: 4px 0 0;
    gap: 6px;
  }
  .operation-timers-panel .operation-timer-controls button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 7px 8px;
    border: 1px solid #b5c5d8;
    border-radius: 22px;
    background: #eef2f7;
    color: #243d5c;
    font-family: inherit;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: normal;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
  }
  .operation-timers-panel .operation-timer-controls button:nth-child(1) {
    border-color: #075dcc;
    background: #075dcc;
    color: #fff;
  }
  .operation-timers-panel .operation-timer-controls button:nth-child(2) {
    border-color: #d8a947;
    background: #fff0ca;
    color: #674500;
  }
  .operation-timers-panel .operation-timer-controls button:nth-child(-n+2)::before {
    content: "";
    display: block;
    flex: 0 0 13px;
    width: 13px;
    height: 13px;
    background: currentColor;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
  }
  .operation-timers-panel .operation-timer-controls button:nth-child(1)::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3.5c0-.8.9-1.3 1.6-.8l13 8.5c.6.4.6 1.2 0 1.6l-13 8.5c-.7.5-1.6 0-1.6-.8z'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 3.5c0-.8.9-1.3 1.6-.8l13 8.5c.6.4.6 1.2 0 1.6l-13 8.5c-.7.5-1.6 0-1.6-.8z'/%3E%3C/svg%3E");
  }
  .operation-timers-panel .operation-timer-controls button:nth-child(2)::before {
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='3' width='5' height='18' rx='1'/%3E%3Crect x='14' y='3' width='5' height='18' rx='1'/%3E%3C/svg%3E");
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='3' width='5' height='18' rx='1'/%3E%3Crect x='14' y='3' width='5' height='18' rx='1'/%3E%3C/svg%3E");
  }
  .operation-timers-panel .operation-timer-controls button:nth-child(3) {
    border-color: #b5c5d8;
    background: #fff;
    color: #243d5c;
  }
  .operation-timers-panel[data-expanded="false"] .operation-timer-controls {
    width: 100%;
    margin-left: 0;
  }
  .operation-timers-panel[data-expanded="false"] .operation-timer-controls button {
    min-height: 44px;
    padding: 7px 6px;
  }
  .operation-timers-panel[data-expanded="true"] {
    padding: 12px;
    gap: 12px;
  }
  .operation-timers-panel[data-expanded="true"] h4 {
    font-size: 13px;
    line-height: 1.4;
  }
  .operation-timers-panel[data-expanded="true"] .operation-timer-row {
    gap: 8px;
    padding-top: 8px;
  }
  .operation-timers-panel[data-expanded="true"] .operation-timer-row + .operation-timer-row {
    border-top: 1px solid #dce4ee;
  }
  .operation-timers-panel[data-expanded="true"] .operation-timer-row > strong {
    font-size: 14px;
  }
  .operation-timers-panel[data-expanded="true"] .operation-timer-row > output {
    font-size: 18px;
    font-weight: 650;
  }
  .operation-timers-panel[data-expanded="true"] .operation-timer-controls {
    grid-template-columns: 80px 80px minmax(0, 1fr);
    gap: 10px;
    margin-top: 5px;
  }
  .operation-timers-panel[data-expanded="true"] .operation-timer-controls button:nth-child(-n+2) {
    flex-direction: column;
    width: 80px;
    min-width: 80px;
    height: 80px;
    min-height: 80px;
    padding: 10px 6px;
    gap: 7px;
    border-radius: 50%;
    font-size: 12px;
  }
  .operation-timers-panel[data-expanded="true"] .operation-timer-controls button:nth-child(-n+2)::before {
    flex-basis: 23px;
    width: 23px;
    height: 23px;
  }
  .operation-timers-panel .operation-timer-controls button:disabled {
    border-color: #d6dee8;
    background: #e9edf3;
    color: #77869a;
    opacity: .65;
    cursor: not-allowed;
    box-shadow: none;
  }
  .operation-timers-panel .operation-timer-controls button:focus-visible {
    outline: 3px solid #0878ef;
    outline-offset: 3px;
  }
  @media (hover: hover) and (pointer: fine) {
    .operation-timers-panel .operation-timer-controls button:nth-child(1):hover:not(:disabled) {
      border-color: #044da9;
      background: #044da9;
    }
    .operation-timers-panel .operation-timer-controls button:nth-child(2):hover:not(:disabled) {
      border-color: #bb8929;
      background: #ffe5a3;
    }
    .operation-timers-panel .operation-timer-controls button:nth-child(3):hover:not(:disabled) {
      border-color: #8da5c3;
      background: #edf4ff;
    }
  }
  @media (forced-colors: active) {
    .operation-timers-panel .operation-timer-controls button:disabled {
      color: GrayText;
      border-color: GrayText;
      opacity: 1;
    }
    .operation-timers-panel .operation-timer-controls button:nth-child(-n+2)::before {
      forced-color-adjust: none;
      background: ButtonText;
    }
  }
}
