.ptwf-form {
  border: 0;
  padding: 0;
  min-width: 0;
}
.ptwf-section {
  padding: 18px;
  margin-bottom: 16px;
}
.ptwf-section h2 {
  font-size: 17px;
  margin: 0 0 14px;
}
.ptwf-section > label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
.ptwf-form input,
.ptwf-form textarea {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  padding: 9px;
  border: 1px solid #d5dfec;
  border-radius: 5px;
  color: #182d47;
  background: #fff;
}
.ptwf-form textarea {
  resize: vertical;
  min-height: 65px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ptwf-form:disabled input,
.ptwf-form:disabled textarea {
  background: #f8fafc;
  color: #24384e;
  opacity: 1;
}
.ptwf-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ptwf-scroll {
  overflow: auto;
  max-height: 560px;
  margin-bottom: 10px;
}
.ptwf-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  min-width: 550px;
}
.ptwf-table th,
.ptwf-table td {
  padding: 6px;
  border: 1px solid #d5dfec;
  vertical-align: top;
}
.ptwf-table th {
  background: #edf3fa;
  position: sticky;
  top: 0;
  font-size: 13px;
}
.ptwf-table textarea {
  min-height: 85px;
  font-size: 14px;
}
.ptwf-table .ptwf-delete {
  width: 45px;
}
.ptwf-risks {
  min-width: 580px;
}
.ptwf-risks th:nth-child(1) {
  width: 38%;
}
.ptwf-risks th:nth-child(2) {
  width: 16%;
}
.ptwf-risks th:nth-child(3) {
  width: 46%;
}
.ptwf-risks textarea {
  min-height: 110px;
}
.ptwf-hint {
  font-size: 13px;
  color: #526680;
}
.ptwf-date-field {
  display: grid;
  gap: 6px;
  min-width: 0;
  font-size: 13px;
  color: #294863;
}
.ptwf-date-value {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 9px;
  border: 1px solid #cbd7e5;
  border-radius: 5px;
  background: #ebf0f6;
  font-variant-numeric: tabular-nums;
}
.ptwf-date-parts {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
  position: relative;
}
.ptwf-date-parts label {
  min-width: 0;
}
#appView #content .ptwf-date-parts input[data-ptwf-date-part] {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100%;
  padding: 8px 2px;
  text-align: center;
}
.ptwf-date-parts [data-ptwf-calendar] {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.ptwf-date-parts button {
  min-width: 36px;
  padding: 8px 4px;
  font-size: 12px;
  white-space: nowrap;
}
.page-title[data-ptw-form] [data-ptw-actions] > .badge {
  display: none;
}
.ptwf-date-parts[aria-invalid='true'] input[data-ptwf-date-part] {
  border-color: #b83737;
}
[data-ptwf-date-error] {
  color: #a32929;
  font-size: 12px;
  min-height: 0;
}
.ptwf-equipment-counts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 20px;
}
.ptwf-equipment-counts > label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
}
.ptwf-equipment-counts label span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ptwf-equipment-counts input {
  max-width: 86px;
  min-width: 0 !important;
}
.ptwf-weekly th:nth-child(1) {
  width: 46px;
}
.ptwf-weekly th:nth-child(4) {
  width: 90px;
}
@media (max-width: 1000px) {
  .ptwf-equipment-counts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .ptwf-equipment-counts {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 1000px) {
  .ptwf-pair {
    grid-template-columns: 1fr;
  }
}
