/* TXTTO_NOTE_EXCEL_SCHEDULE_UI_MARKER_SCOPE_FIX_V1_20260825 */

.txttonote-assignment-zone-v1 {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 0.35rem;
}

.file-card-header .txttonote-assignment-zone-v1 {
  order: 2;
}

.txttonote-schedule-badge-v1 {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  max-width: 100%;
  padding: 0.28rem 0.62rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.txttonote-schedule-badge-v1.scheduled {
  color: #075985;
  background: #ecfeff;
  border-color: #67e8f9;
}

.txttonote-schedule-badge-v1.past {
  color: #92400e;
  background: #fffbeb;
  border-color: #fcd34d;
}

button.txttonote-schedule-badge-v1.unscheduled {
  cursor: pointer;
  color: #4338ca;
  background: #eef2ff;
  border-color: #a5b4fc;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

button.txttonote-schedule-badge-v1.unscheduled:hover:not(:disabled),
button.txttonote-schedule-badge-v1.unscheduled:focus-visible {
  background: #e0e7ff;
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.18);
  transform: translateY(-1px);
  outline: none;
}

button.txttonote-schedule-badge-v1.unscheduled:disabled {
  cursor: wait;
  opacity: 0.6;
}

.txttonote-inline-note-v1 {
  margin: 0.75rem 0;
  padding: 0.72rem 0.9rem;
  border: 1px solid;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.65;
}

.txttonote-inline-note-v1.info {
  color: #1e3a8a;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.txttonote-inline-note-v1.warning {
  color: #92400e;
  background: #fffbeb;
  border-color: #fde68a;
}

.txttonote-inline-note-v1.error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.txttonote-calendar-card-v1 {
  overflow: hidden;
}

.txttonote-calendar-title-row-v1 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem;
}

.txttonote-calendar-description-v1 {
  margin: 0.35rem 0 0;
  color: var(--text-secondary, #64748b);
  font-size: 0.9rem;
  line-height: 1.6;
}

.txttonote-calendar-controls-v1 {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.65rem;
  margin: 0.8rem 0;
}

.txttonote-calendar-controls-v1 label {
  display: grid;
  gap: 0.25rem;
  color: var(--text-secondary, #475569);
  font-size: 0.82rem;
  font-weight: 600;
}

.txttonote-calendar-controls-v1 select {
  min-width: 110px;
  min-height: 38px;
}

.txttonote-calendar-scroll-v1 {
  max-height: min(68vh, 940px);
  overflow: auto;
  border: 1px solid var(--border-color, #dbe4f0);
  border-radius: 12px;
  background: var(--card-bg, #fff);
}

.txttonote-calendar-loading-v1 {
  padding: 2rem;
  color: var(--text-secondary, #64748b);
  text-align: center;
}

.txttonote-weekly-grid-v1 {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  font-size: 0.8rem;
}

.txttonote-weekly-grid-v1 th,
.txttonote-weekly-grid-v1 td {
  height: 42px;
  padding: 0.22rem;
  border-right: 1px solid var(--border-color, #e2e8f0);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  text-align: center;
  vertical-align: middle;
}

.txttonote-weekly-grid-v1 thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  color: var(--text-primary, #0f172a);
  background: var(--bg-secondary, #f8fafc);
  box-shadow: 0 1px 0 var(--border-color, #e2e8f0);
}

.txttonote-weekly-grid-v1 .time-col {
  position: sticky;
  left: 0;
  z-index: 3;
  width: 76px;
  color: var(--text-secondary, #475569);
  background: var(--bg-secondary, #f8fafc);
  font-variant-numeric: tabular-nums;
}

.txttonote-weekly-grid-v1 thead .time-col {
  z-index: 5;
}

.txttonote-weekly-grid-v1 td.free {
  background: rgba(255, 255, 255, 0.76);
}

.txttonote-weekly-grid-v1 td.occupied {
  background: rgba(238, 242, 255, 0.65);
}

.txttonote-slot-v1 {
  appearance: none;
  width: 100%;
  min-height: 32px;
  padding: 0.22rem 0.3rem;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.txttonote-slot-v1.free {
  cursor: pointer;
  color: #64748b;
  background: transparent;
  border-color: transparent;
}

.txttonote-slot-v1.free:hover,
.txttonote-slot-v1.free:focus-visible {
  color: #3730a3;
  background: #eef2ff;
  border-color: #a5b4fc;
  outline: none;
}

.txttonote-slot-v1.occupied {
  cursor: pointer;
  color: #3730a3;
  background: #e0e7ff;
  border-color: #c7d2fe;
}

.txttonote-slot-v1.occupied:hover,
.txttonote-slot-v1.occupied:focus-visible {
  background: #c7d2fe;
  outline: none;
}


.txttonote-weekly-grid-v1 td.occupied.protected,
.txttonote-slot-v1.occupied.protected {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.txttonote-slot-v1.occupied.protected:disabled {
  cursor: not-allowed;
  opacity: 0.82;
}

.txttonote-highlight-row-v1 {
  animation: txttonote-row-highlight-v1 2.2s ease;
}

@keyframes txttonote-row-highlight-v1 {
  0%, 100% { box-shadow: none; }
  20%, 75% { box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.38); background: rgba(238, 242, 255, 0.8); }
}

.txttonote-modal-v1 {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.txttonote-modal-backdrop-v1 {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(2px);
}

.txttonote-modal-panel-v1 {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.25rem;
  border: 1px solid var(--border-color, #dbe4f0);
  border-radius: 16px;
  color: var(--text-primary, #0f172a);
  background: var(--card-bg, #fff);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

.txttonote-modal-panel-v1 h3 {
  margin: 0 2.4rem 0.4rem 0;
}

.txttonote-modal-close-v1 {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: var(--text-secondary, #475569);
  background: var(--bg-secondary, #f1f5f9);
  font-size: 1.25rem;
}

.txttonote-modal-slot-v1 {
  display: inline-flex;
  margin: 0.2rem 0 1rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: #3730a3;
  background: #eef2ff;
  font-weight: 800;
}

.txttonote-modal-field-v1 {
  display: grid;
  gap: 0.35rem;
  margin: 0.8rem 0;
  font-weight: 700;
}

.txttonote-modal-field-v1 select {
  width: 100%;
  min-height: 44px;
}

.txttonote-modal-help-v1 {
  color: var(--text-secondary, #64748b);
  font-size: 0.86rem;
  line-height: 1.6;
}

.txttonote-modal-actions-v1 {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  margin-top: 1.15rem;
}

.txttonote-login-notice-v1 {
  margin: 0.85rem 0 1rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #1e3a8a;
  background: #eff6ff;
  font-size: 0.91rem;
  line-height: 1.7;
}

.txttonote-schedule-toast-container {
  position: fixed;
  z-index: 10100;
  top: 1rem;
  right: 1rem;
  display: grid;
  gap: 0.55rem;
  width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
}

.txttonote-schedule-toast {
  padding: 0.82rem 0.95rem;
  border: 1px solid;
  border-radius: 11px;
  opacity: 0;
  transform: translateY(-8px);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.17);
  transition: opacity 0.22s ease, transform 0.22s ease;
  line-height: 1.55;
  pointer-events: auto;
}

.txttonote-schedule-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.txttonote-schedule-toast.info {
  color: #1e3a8a;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.txttonote-schedule-toast.success {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.txttonote-schedule-toast.error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

@media (max-width: 900px) {
  .txttonote-calendar-title-row-v1 {
    flex-direction: column;
  }

  .file-card-header {
    flex-wrap: wrap;
  }

  .file-card-header .txttonote-assignment-zone-v1 {
    flex: 1 0 100%;
    order: 3;
    justify-content: flex-start;
    padding: 0.45rem 0 0;
  }

  .txttonote-modal-actions-v1 {
    flex-direction: column-reverse;
  }

  .txttonote-modal-actions-v1 .button {
    width: 100%;
  }
}
