* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #e9f0f5;
  display: flex;
  justify-content: center;
  padding: 20px 12px;
}

.checklist {
  max-width: 1050px;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 35px -8px rgba(0,0,0,0.1);
  padding: 22px 18px 28px;
}

h1 {
  font-size: 24px;
  color: #1e3a2f;
  border-left: 5px solid #2a7f49;
  padding-left: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

.sub {
  color: #4a6a7e;
  font-size: 13px;
  margin-bottom: 20px;
  border-bottom: 1px solid #dee9ef;
  padding-bottom: 12px;
}

.photo-bar {
  background: #f3f9f5;
  border-radius: 40px;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
  border: 1px solid #cde0d4;
}

.photo-item { font-weight: bold; font-size: 15px; }
.badge-mandatory {
  background: #ffecb3;
  padding: 4px 14px;
  border-radius: 40px;
  font-size: 12px;
  font-weight: bold;
}

.photo-upload-widget {
  margin-top: 12px;
  border: 1px solid #d8e3ec;
  border-radius: 12px;
  padding: 10px;
  background: #f8fbfd;
}

.photo-upload-title {
  font-size: 13px;
  font-weight: 800;
  color: #20445a;
  margin-bottom: 10px;
}

.photo-upload-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.photo-upload-col {
  border: 1px solid #d7e2ec;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}

.photo-upload-head {
  font-size: 13px;
  color: #23475e;
  margin-bottom: 8px;
}

.photo-upload-col input[type="file"] {
  width: 100%;
  font-size: 12px;
  margin-bottom: 8px;
}

.photo-thumb-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.photo-thumb {
  border: 1px solid #d6e2eb;
  border-radius: 8px;
  padding: 6px;
  background: #fcfeff;
}

.photo-thumb img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: #eef3f7;
}

.photo-meta {
  margin-top: 6px;
  font-size: 11px;
  color: #4b6578;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-remove {
  margin-top: 6px;
  width: 100%;
  border: 1px solid #cfdde7;
  background: #f3f7fa;
  color: #24455a;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.photo-empty {
  border: 1px dashed #d4e0ea;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  color: #6a8193;
  background: #f8fbfd;
}

.photo-upload-status {
  margin-top: 8px;
  font-size: 12px;
  color: #4a6a7e;
}

.note-box {
  background: #f9f5ea;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 16px;
  margin: 12px 0;
}

.motivation-box {
  background: #fcf4e8;
  border-radius: 20px;
  padding: 16px 22px;
  margin: 14px 0 18px;
  border: 1px solid #ffe1b3;
}

.section-title {
  margin: 18px 0 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #eaf2f8;
  border: 1px solid #d3e0ec;
  color: #1f3f55;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.section-hint {
  margin-top: 8px;
  font-size: 12px;
  color: #4d697d;
}

.count-config {
  background: #f4f8fb;
  border: 1px solid #d5e2ec;
  border-radius: 14px;
  padding: 12px;
  margin: 12px 0 16px;
}

.count-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.count-field {
  font-size: 13px;
  color: #274558;
}

.count-field input {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #cddbe6;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
}

.special-box {
  background: #f4f8fb;
  border: 1px solid #d5e2ec;
  border-radius: 14px;
  padding: 12px;
  margin: 12px 0 16px;
}

.special-box label {
  display: block;
  font-size: 13px;
  color: #274558;
  margin-bottom: 8px;
  font-weight: 700;
}

.special-box textarea {
  width: 100%;
  min-height: 98px;
  border: 1px solid #cddbe6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  resize: vertical;
  font-family: inherit;
}

.dynamic-stack {
  display: grid;
  gap: 10px;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.room-card {
  background: #fff;
  border: 1px solid #dee6ec;
  border-radius: 18px;
  padding: 14px;
  margin: 10px 0;
}

.room-title {
  font-size: 19px;
  font-weight: 800;
  color: #1a4d2e;
  border-bottom: 2px solid #cfe3cf;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.check-item {
  margin: 7px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  cursor: pointer;
}

.check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #2a7f49;
}

.final-check {
  background: #eef2f7;
  border-left: 5px solid #507d5a;
  padding: 16px;
  border-radius: 20px;
  margin: 20px 0;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.sign-row {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
  border-top: 1px solid #cddfe8;
  padding-top: 18px;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
}

.sign-field {
  min-width: 220px;
}

.sign-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.sign-field input {
  width: 100%;
  border: 1px solid #cddbe6;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
}

.signature-box {
  width: 100%;
  margin-top: 12px;
}

.signature-box label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.signature-wrap {
  border: 1px solid #cddbe6;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.signature-wrap canvas {
  width: 100%;
  max-width: 520px;
  height: 140px;
  display: block;
  touch-action: none;
  cursor: crosshair;
}

.signature-actions {
  margin-top: 8px;
}

.signature-actions button {
  border: 1px solid #cddbe6;
  background: #f3f7fa;
  color: #24455a;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.submit-box {
  margin-top: 18px;
  border-top: 1px solid #dbe7ef;
  padding-top: 16px;
}

.submit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.submit-grid input {
  width: 100%;
  border: 1px solid #cddbe6;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.send-btn, .clear-btn {
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.send-btn { border: 0; background: #2a7f49; color: #fff; }
.clear-btn { border: 1px solid #cddbe6; background: #f3f7fa; color: #24455a; }

.status {
  font-size: 12px;
  color: #4a6a7e;
  margin-top: 8px;
}

.footer {
  text-align: center;
  font-size: 11px;
  color: #6f8faa;
  margin-top: 25px;
  border-top: 1px solid #e2edf2;
  padding-top: 18px;
}

.lang-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.lang-switch a {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid #cddbe6;
  border-radius: 999px;
  font-size: 12px;
  color: #20445a;
  text-decoration: none;
  background: #f8fbfd;
}

.lang-switch a.active {
  background: #2a7f49;
  color: #fff;
  border-color: #2a7f49;
}

.listing {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.listing a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #d5e3ec;
  text-decoration: none;
  color: #12354b;
  background: #f8fbfd;
  font-weight: 600;
}

.pdf-exporting .submit-box { display: none !important; }
.pdf-exporting .signature-actions { display: none !important; }
.pdf-exporting .lang-switch { display: none !important; }
.pdf-exporting .note-box { display: none !important; }
.pdf-exporting .photo-bar { display: none !important; }
.pdf-exporting .motivation-box { display: none !important; }
.pdf-exporting .photo-upload-widget { display: none !important; }
.pdf-exporting .pdf-temp-hide { display: none !important; }
.pdf-exporting .signature-wrap {
  border: 0 !important;
  background: transparent !important;
}
.pdf-exporting .signature-wrap canvas {
  height: 90px !important;
}

@media (min-width: 860px) {
  body { padding: 40px 20px; }
  .checklist { padding: 35px 40px 45px; }
  .submit-grid { grid-template-columns: 1.2fr 1fr auto auto; align-items: center; }
  .count-grid { grid-template-columns: 1fr 1fr; }
  .two-columns { grid-template-columns: 1fr 1fr; gap: 14px; }
  .photo-upload-grid { grid-template-columns: 1fr 1fr; }
  .photo-thumb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Operations sheet layout: compact, printable and close to the field checklist. */
body { background:#eef0ec; padding:24px 12px; color:#223040; font-family:Arial, sans-serif; }
.checklist { max-width:1120px; border-radius:0; box-shadow:0 3px 18px rgba(18,39,70,.16); padding:20px 28px 24px; }
h1 { margin:0 0 14px; border:0; padding:14px 18px; text-align:center; color:#fff; background:#174d82; font-size:25px; letter-spacing:.04em; }
.sub { display:inline-block; width:100%; padding:10px 12px; border:1px solid #c9d3db; color:#263b4c; background:#f7f8f7; font-size:14px; }
.lang-switch,.motivation-box,.note-box,.inline-list { display:none; }
.photo-bar { margin:10px 0; border-radius:0; background:#fff8ec; padding:9px 14px; justify-content:flex-start; gap:35px; }
.section-title { background:#174d82; color:#fff; border:0; border-radius:0; margin:14px 0 8px; padding:8px 12px; font-size:15px; }
.room-card { border:1px solid #c6d1db; border-radius:0; box-shadow:none; margin:0 0 10px; padding:0 10px 8px; break-inside:avoid; }
.room-title { background:#174d82; color:#fff; margin:0 -10px 7px; padding:8px 11px; font-size:14px; letter-spacing:.04em; }
.check-item { display:flex; align-items:flex-start; gap:7px; padding:4px 0; border:0; font-size:13px; line-height:1.3; }
.check-item input { width:15px; height:15px; flex:0 0 15px; margin-top:1px; accent-color:#174d82; }
.count-config,.special-box { border:1px solid #c6d1db; border-radius:0; background:#f7f8f7; padding:8px 12px; margin:10px 0; }
.count-grid { grid-template-columns:repeat(5,minmax(0,1fr)); gap:7px; }
.count-field { font-size:12px; }
.count-field input { padding:5px; min-height:30px; }
.photo-upload-widget { border-radius:0; padding:8px; margin-top:7px; }
.photo-upload-title,.photo-upload-head { font-size:12px; }
.submit-box { border-radius:0; }
@media (min-width: 860px) {
  .two-columns { gap:10px; }
  .two-columns .dynamic-stack { display:grid; gap:10px; }
  #bedroomsContainer,#bathroomsContainer { grid-template-columns:1fr; }
  .checklist > .room-card { width:calc(50% - 6px); display:inline-block; vertical-align:top; margin-right:8px; }
  .checklist > .room-card:nth-of-type(even) { margin-right:0; }
}
@media (max-width: 700px) { .count-grid { grid-template-columns:1fr 1fr; } h1 { font-size:19px; } }
