.acc-tabs {
  display: flex;
  gap: 8px;
  margin: 0 0 20px;
  flex-wrap: wrap;
}
.acc-tabs button {
  padding: 13px 18px;
  border: 1px solid #cad9e9;
  background: white;
  border-radius: 10px;
  color: #163b68;
  font-weight: 700;
}
.acc-tabs button.active {
  background: #1769e0;
  color: white;
  border-color: #1769e0;
}
.acc-card {
  padding: 22px;
  border: 1px solid #d0deee;
  border-radius: 14px;
  background: white;
  margin: 16px 0;
}
.acc-card h2 {
  font-size: 18px;
  margin: 0 0 14px;
}
.acc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.acc-grid label,
.acc-file-row label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #355272;
  font-size: 13px;
}
.acc-grid input,
.acc-grid textarea,
.acc-grid select,
.acc-table input,
.acc-table textarea,
.acc-table select,
.acc-toolbar input,
.acc-toolbar select {
  width: 100%;
  padding: 10px;
  border: 1px solid #c6d7ea;
  border-radius: 7px;
  box-sizing: border-box;
  background: white;
  color: #162f4e;
}
.acc-grid input[readonly] {
  background: #f2f5f9;
}
.acc-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
.acc-toolbar > input {
  max-width: 420px;
}
.acc-scroll {
  overflow: auto;
}
.acc-table {
  width: 100%;
  border-collapse: collapse;
}
.acc-table th,
.acc-table td {
  border-bottom: 1px solid #dce6f0;
  padding: 12px;
  font-size: 13px;
  text-align: left;
}
.acc-table th {
  background: #edf3f9;
  white-space: nowrap;
}
.acc-table .acc-link {
  color: #0c5cca;
  font-weight: 700;
  background: none;
  border: 0;
  text-align: left;
}
.acc-input-table {
  min-width: 1100px;
}
.acc-input-table td {
  min-width: 125px;
}
.acc-input-table td:first-child,
.acc-input-table td:last-child {
  min-width: 45px;
}
.acc-input-table label {
  font-size: 0;
}
.acc-input-table label input,
.acc-input-table label select,
.acc-input-table label textarea {
  font-size: 13px;
  min-width: 110px;
}
.acc-input-table label textarea {
  min-width: 180px;
}
.acc-note {
  font-size: 13px;
  color: #63768c;
  line-height: 1.7;
}
.acc-warning {
  padding: 12px;
  background: #fff5dd;
  color: #805000;
  border-radius: 8px;
}
.acc-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.acc-photo-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #91b4df;
  background: #f6faff;
  border-radius: 10px;
  height: 230px;
  cursor: pointer;
  overflow: hidden;
}
.acc-photo-slot input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.acc-photo-slot img {
  max-width: 100%;
  height: 185px;
  object-fit: contain;
}
.acc-photo-grid textarea {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 10px;
}
.acc-file-row {
  padding: 12px 0;
  border-bottom: 1px solid #e1e9f2;
}
.acc-file-row span {
  display: block;
  margin: 8px 0;
}
.acc-preview {
  background: #e4eaf1;
  padding: 20px;
  overflow: auto;
}
.acc-print-root {
  color: #111;
  font:
    10pt/1.4 'Malgun Gothic',
    sans-serif;
}
.acc-paper {
  position: relative;
  background: white;
  box-sizing: border-box;
  width: 190mm;
  max-width: 100%;
  margin: 0 auto 20px;
  padding: 4mm;
  min-height: 264mm;
  break-after: page;
  page-break-after: always;
}
.acc-paper:last-child {
  break-after: auto;
  page-break-after: auto;
}
.acc-paper-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8pt;
  border-bottom: 1.5px solid #234b7d;
  padding-bottom: 3mm;
  margin-bottom: 3mm;
}
.acc-paper-header strong {
  font-size: 15pt;
  color: #234b7d;
}
.acc-paper-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4mm;
  margin-bottom: 4mm;
}
.acc-paper h1 {
  font-size: 20pt;
  text-align: center;
  margin: 3mm 0 5mm;
  line-height: 1.3;
}
.acc-paper-title h1 {
  flex: 1;
  font-size: 18pt;
  margin: 0;
}
.acc-approval {
  width: 52%;
  border-collapse: collapse;
  table-layout: fixed;
}
.acc-approval td {
  height: 18mm;
  text-align: center;
}
.acc-paper th,
.acc-paper td {
  color: #111 !important;
  border: 1px solid #222 !important;
  padding: 2mm;
  font-size: 9pt;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.acc-paper th {
  background: #edf1f5 !important;
  font-weight: 500;
}
.acc-paper .acc-form-table {
  border-collapse: collapse;
  table-layout: fixed;
  width: 100%;
  margin: 0 0 2mm;
}
.acc-paper h2 {
  font-size: 10pt;
  margin: 3mm 0 1.5mm;
  font-weight: 700;
}
.acc-paper .acc-event th {
  width: 18%;
}
.acc-paper .acc-event td {
  min-height: 8mm;
}
.acc-paper .acc-att-checks {
  font-size: 8pt;
  line-height: 1.6;
}
.acc-paper-footer {
  margin-top: 4mm;
  font-size: 7pt;
  text-align: right;
  border-top: 1px solid #ddd;
  padding-top: 2mm;
}
.acc-statement-body {
  border: 1px solid #222;
  padding: 5mm;
  min-height: 145mm;
  white-space: normal;
}
.acc-confirmation {
  text-align: center;
  margin-top: 10mm;
}
.acc-role-plan {
  border: 1px solid #222;
  padding: 4mm;
  break-inside: avoid;
}
.acc-role-plan.four {
  min-height: 53mm;
}
.acc-role-plan.three {
  min-height: 70mm;
}
.acc-role-plan h2 {
  margin: 0 0 4mm;
}
.acc-role-plan > div {
  min-height: 26mm;
}
.acc-sign {
  text-align: right;
  margin: 3mm 0;
}
.acc-photo-paper {
  margin-top: 6mm !important;
}
.acc-paper .acc-print-photo {
  width: 100%;
  height: 75mm;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8793a0;
}
.acc-print-photo img {
  max-width: 85mm;
  max-height: 75mm;
  height: auto !important;
  object-fit: contain;
}
.acc-photo-caption {
  height: 100mm;
  vertical-align: top !important;
}
.acc-measures td {
  height: 32mm;
}
.acc-workplan {
  border: 1px solid #222;
  padding: 4mm;
  min-height: 40mm;
  overflow-wrap: anywhere;
}
.acc-attendance td {
  height: 17mm;
}
.acc-survey {
  font-size: 8pt;
}
.acc-survey th,
.acc-survey td {
  font-size: 8pt;
  padding: 1.4mm;
}
.acc-survey h1 {
  font-size: 19pt;
}
.acc-survey p {
  font-size: 8pt;
}
.acc-print-root tr {
  break-inside: avoid;
}
.acc-print-root p,
.acc-print-root td,
.acc-print-root div {
  overflow-wrap: anywhere;
}
.acc-paper [data-ca-blob-preview] img {
  max-height: 75mm !important;
}
.acc-card button,
.acc-card input,
.acc-card select {
  font: inherit;
}
.acc-card button {
  cursor: pointer;
}
.acc-statement-entry {
  border: 1px solid #cbdbee;
  border-radius: 10px;
  padding: 18px;
  margin: 15px 0;
}
.acc-statement-entry > button {
  margin-top: 12px;
}
.workspace-leave [data-delete-confirm] {
  background: #c93939;
  color: white;
  border-color: #c93939;
}
@media (max-width: 850px) {
  .acc-grid,
  .acc-photo-grid {
    grid-template-columns: 1fr;
  }
  .acc-tabs button {
    flex: 1;
  }
  .acc-preview {
    padding: 4px;
  }
}
@media print {
  .acc-paper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    min-height: 0;
    box-shadow: none;
  }
  .acc-print-root {
    background: white;
  }
  .acc-preview {
    padding: 0;
    background: white;
  }
}
