/* ===== TRAI SCOPE OF WORK DRAWER (PR509) ===== */
.tsow-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100vw;
  height: 100vh;
  background: #fff;
  box-shadow: -4px 0 24px rgba(0,0,0,0.14);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}
.tsow-closed { transform: translateX(100%); pointer-events: none; }
.tsow-open   { transform: translateX(0); }

.tsow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #1A1A2E;
  flex-shrink: 0;
}
.tsow-header-title {
  font-size: 15px;
  font-weight: 700;
  color: #FF6B00;
}
.tsow-close-btn {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 5px;
  color: #CDCCCA;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  cursor: pointer;
  font-family: inherit;
}
.tsow-close-btn:hover { background: rgba(255,255,255,0.1); }

.tsow-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 18px;
  font-size: 13px;
  color: #28251D;
}

.tsow-phase-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #FF6B00;
  margin-bottom: 4px;
}
.tsow-phase-title {
  font-size: 17px;
  font-weight: 700;
  color: #1A1A2E;
  margin-bottom: 8px;
}
.tsow-instructions {
  font-size: 12px;
  color: #7A7974;
  margin-bottom: 16px;
  line-height: 1.5;
}
.tsow-disclaimer {
  font-size: 11px;
  color: #BAB9B4;
  margin-bottom: 12px;
}

/* Sheet list */
.tsow-sheet-row {
  margin-bottom: 10px;
  border: 1px solid #F0EFEC;
  border-radius: 6px;
  padding: 10px 12px;
  background: #FAFAF8;
}
.tsow-sheet-check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
}
.tsow-sheet-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}
.tsow-sheet-note-wrap {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.tsow-sheet-note {
  flex: 1;
  border: 1px solid #D4D1CA;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 12px;
  font-family: inherit;
  color: #28251D;
  transition: border-color 0.15s;
}
.tsow-sheet-note:focus { outline: none; border-color: #FF6B00; }
.tsow-view-link {
  font-size: 11px;
  font-weight: 700;
  color: #FF6B00;
  text-decoration: none;
  white-space: nowrap;
}
.tsow-view-link:hover { text-decoration: underline; }

/* Narrative */
.tsow-narrative-wrap { margin-bottom: 14px; }
.tsow-narrative {
  background: #F7F6F2;
  border: 1px solid #D4D1CA;
  border-radius: 6px;
  padding: 14px;
  font-size: 12px;
  font-family: monospace;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  color: #28251D;
  max-height: 340px;
  overflow-y: auto;
}

/* Thumbnails */
.tsow-thumb-section-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #7A7974;
  margin-bottom: 8px;
}
.tsow-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.tsow-thumb-tile {
  background: #F7F6F2;
  border: 1px solid #D4D1CA;
  border-radius: 6px;
  padding: 10px;
  text-align: center;
}
.tsow-thumb-icon {
  font-size: 20px;
  font-weight: 700;
  color: #A12C7B;
  margin-bottom: 4px;
}
.tsow-thumb-name {
  font-size: 10px;
  color: #7A7974;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}
.tsow-thumb-view-btn {
  background: #FF6B00;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}

/* Footer */
.tsow-footer-row {
  margin-top: 16px;
  display: flex;
  gap: 8px;
}
.tsow-next-btn {
  flex: 1;
  padding: 11px 0;
  background: #FF6B00;
  color: #fff;
  border: none;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.tsow-next-btn:hover { background: #e55e00; }
.tsow-back-btn {
  padding: 9px 16px;
  background: none;
  border: 1px solid #D4D1CA;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #7A7974;
  cursor: pointer;
  font-family: inherit;
}
.tsow-back-btn:hover { background: #F0EFEC; }
.tsow-copy-btn {
  flex: 1;
  padding: 9px 0;
  background: #1A1A2E;
  color: #FF6B00;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.tsow-copy-btn:hover { background: #0f0f1e; }

.tsow-empty, .tsow-loading {
  color: #7A7974;
  font-size: 13px;
  padding: 16px 0;
}
