:root {
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text-main: #111827;
  --text-sub: #6b7280;
  --text-muted: #9ca3af;
  --bg-page: #f3f4f6;
  --bg-card: #ffffff;
  --bg-header: #f9fafb;
  --bg-oneday: #fee2e2;
  --bg-long: #e0e7ff;
  --bg-empty: #ecfdf5;
  --accent: #2563eb;
  --danger: #ef4444;
}
* {
  box-sizing: border-box;
}
.haima-auth-checking body {
  visibility: hidden;
}
body {
  margin: 0;
  padding: 16px;
  overflow-x: hidden;
  color: var(--text-main);
  font-size: 14px;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.92),
    rgba(229, 231, 235, 0.92)
  );
}
body,
button,
input,
select,
textarea {
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "Yu Gothic",
    "メイリオ",
    "Meiryo",
    "Noto Sans JP",
    "Microsoft YaHei",
    sans-serif;
}
.app-shell {
  max-width: 1560px;
  margin: 0 auto;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.page-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.page-icon {
  font-size: 24px;
}
.page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}
.page-subtitle {
  margin: 2px 0 0;
  font-size: 11px;
  color: var(--text-muted);
}
.page-header-menu {
  display: flex;
  align-items: center;
  gap: 10px;
}

.month-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 6px 0 8px;
}
.month-btn {
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.month-btn:hover {
  background: #dbeafe;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}
.calendar-count-buttons{
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
}
.calendar-mini-btn{
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 14px;
  font-weight: 800;
  border-radius: 999px;
  line-height: 1;
}
.calendar-mini-btn:disabled{
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
}
.month-label{
  font-size:22px;
  font-weight:900;
  padding:4px 12px;
  color:#111827;
}



.cal-card {
  background: var(--bg-card);
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  padding: 10px 12px 12px;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
}
.cal-month-block {
  margin-bottom: 14px;
}
.cal-month-block-next {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #dbe4f3;
}
.month-label-sub {
  display: inline-block;
  margin: 0 0 8px 4px;
  font-size: 14px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fdfefe, #ecf2ff);
  color: #1f3357;
}
.cal-wrap {
  overflow-x: hidden;
  overflow-y: hidden;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
}

.cal-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  min-width: 100%;
  font-size: 10px;
  table-layout: fixed;
}
.cal-table th,
.cal-table td {
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3px 1px;
  font-size: 10px;
  text-align: center;
  line-height: 1.35;
  vertical-align: middle;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow: hidden;
}
.cal-col-vehicle {
  background: var(--bg-header);
  text-align: left;
  font-weight: 700;
  width: 54px;
  min-width: 54px;
  max-width: 54px;
  position: sticky;
  left: 0;
  z-index: 3;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: normal;
  writing-mode: horizontal-tb;
  line-height: 1.15;
  padding-left: 2px;
  padding-right: 2px;
  font-size: 10px;
}
.cal-head-date {
  background: #f8fafc;
  color: #111827;
  position: sticky;
  top: 0;
  z-index: 2;
  box-shadow: inset 0 -1px 0 var(--border);
}
.cal-head-date-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.cal-day-num {
  font-weight: 700;
  font-size: 12px;
}
.cal-head-day {
  font-size: 10px;
  color: var(--text-sub);
}
.cal-head-date.is-holiday .cal-day-num,
.cal-head-date.is-holiday .cal-head-day {
  color: #dc2626 !important;
}
.cal-head-date.is-weekend .cal-day-num,
.cal-head-date.is-weekend .cal-head-day {
  color: #dc2626 !important;
}
.cal-head-date.is-today .cal-head-date-inner {
  background: #fffceb;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(234, 179, 8, 0.45) inset;
}

.cal-cell-empty {
  background: var(--bg-empty) !important;
  color: #065f46;
}
.cal-cell,
.cal-cell-empty,
.cal-cell-oneday,
.cal-cell-long,
.cal-cell-multi {
  width: auto;
  min-width: 0;
  height: 50px;
}
.cal-cell-oneday {
  background: var(--bg-oneday) !important;
  color: #7f1d1d;
}
.cal-cell-long {
  background: var(--bg-long) !important;
  color: #1e3a8a;
}
.cal-cell-multi {
  background: linear-gradient(180deg, #f97316 0%, #be123c 100%) !important;
  color: #ffffff !important;
}
.cal-multi-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: stretch;
}
.cal-mini-booking {
  border-radius: 999px;
  padding: 1px 3px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-mini-booking.status-mitsumori {
  background: #fed7aa;
  color: #9a3412;
}
.cal-mini-booking.status-shinki {
  background: #bfdbfe;
  color: #1e40af;
}
.cal-mini-booking.status-final {
  background: #bbf7d0;
  color: #166534;
}
.cal-mini-booking.status-other {
  background: #e5e7eb;
  color: #374151;
}
.cal-mini-more {
  font-size: 9px;
  font-weight: 800;
  color: #475569;
}

.cal-table tbody tr:hover td {
  background-image: linear-gradient(to right, rgba(191, 219, 254, 0.2), rgba(191, 219, 254, 0));
}

.cal-cell-main {
  font-weight: 700;
  font-size: 10px;
}
.cal-cell-sub {
  margin-top: 2px;
  font-size: 9px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 2.4em;
  word-break: break-word;
  overflow-wrap: anywhere;
  opacity: 0.95;
}

.editor-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.editor-card#editorPanel {
  display: none !important;
}
.editor-card .row {
  display: grid;
  grid-template-columns: 80px 1fr 70px 1fr 70px 1fr 70px 1fr;
  gap: 8px 10px;
  margin-bottom: 8px;
  align-items: center;
}
.editor-card .row-2 {
  grid-template-columns: 80px 1fr 70px 1fr 70px 1fr;
}
.editor-card .row-3 {
  grid-template-columns: 80px 1fr;
}
.editor-card .row-4 {
  grid-template-columns: 80px 1fr;
}
.editor-card .row-5 {
  display: flex;
  justify-content: flex-start;
  margin-top: 6px;
}
.lbl {
  justify-self: end;
  font-weight: 700;
  color: #1f2937;
}
.ipt {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 13px;
}
.ipt:focus,
.area:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}
.area {
  width: 100%;
  min-height: 60px;
  padding: 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 13px;
}

.time-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.time-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.time-badge {
  min-width: 44px;
  text-align: center;
  font-size: 12px;
  color: #1f2937;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 4px 8px;
}
.time-col {
  display: flex;
  align-items: center;
  gap: 8px;
}
.time-title {
  font-weight: 600;
  color: #1f2937;
}
.time-ipt {
  padding: 6px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
}

.display-panel {
  margin-top: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.floating-side-panel {
  position: fixed;
  top: 80px;
  right: 0;
  width: 180px;
  min-height: 320px;
  max-height: calc(100vh - 120px);
  overflow: auto;
  border: 1px solid #dbe4f3;
  border-radius: 14px 0 0 14px;
  background: linear-gradient(150deg, #f9fbff 0%, #eef3ff 100%);
  box-shadow:
    0 18px 38px rgba(52, 84, 128, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  z-index: 50;
  padding: 12px 12px 12px 16px;
  transform: translateX(calc(100% - 10px));
  transition: transform 0.3s ease-out;
}
.floating-side-panel.is-visible {
  transform: translateX(0);
}
.floating-side-tab {
  position: absolute;
  left: -10px;
  top: 40px;
  width: 10px;
  height: 80px;
  background: #2563eb;
  border-radius: 10px 0 0 10px;
}
.floating-buttons {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 8px;
}
.floating-btn {
  padding: 8px 10px;
  border: 1px solid #d8e2f2;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}
.floating-btn:hover {
  background: #e8f0ff;
  border-color: #9bb7f5;
}
.display-table {
  width: 100%;
  max-width: 1100px;
  border-collapse: collapse;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f7ff 100%);
  table-layout: fixed;
  border: 1px solid #dbe4f3;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto;
}
.display-table th {
  background: linear-gradient(180deg, #f1f6ff 0%, #e6eefb 100%);
  color: #1f2f4b;
  font-weight: 700;
  border-bottom: 1px solid #dbe4f3;
  border-right: 1px solid #e6edf7;
  padding: 8px 10px;
  text-align: center !important;
  vertical-align: middle;
  font-size: 12px;
}
.display-table td {
  padding: 8px 10px;
  text-align: center !important;
  vertical-align: middle;
  border-bottom: 1px solid #e6edf7;
  border-right: 1px solid #e6edf7;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
  color: #2f3f5c;
}
.display-table th:last-child,
.display-table td:last-child{
  border-right: none;
}
.display-table td:last-child{
  width: 80px;
  text-align: center;
  vertical-align: middle;
}
.display-table td:last-child button{
  display: inline-block;
  min-width: 48px;
  margin: 0 auto;
}
.display-table tr:hover {
  background: #f5f8ff;
}
.display-table tr.is-highlight td {
  background: #fef3c7 !important;
}
.btn-mini.btn-red {
  background: var(--danger);
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 4px 8px;
  cursor: pointer;
  transition: 0.1s;
}
.btn-mini.btn-red:hover {
  background: #dc2626;
  transform: scale(1.05);
}

.ipt[readonly],
.ipt[data-locked="1"] {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
  pointer-events: none;
  user-select: text;
}

.vehicle-menu {
  position: fixed;
  min-width: 180px;
  padding: 6px;
  background: rgba(255,255,255,0.96);
  color: #1f2f4b;
  border: 1px solid #dfe5f3;
  border-radius: 12px;
  box-shadow: 0 16px 32px rgba(52,84,128,0.20);
  z-index: 100000;
}
.vehicle-menu button {
  all: unset;
  display: block;
  width: 100%;
  padding: 8px 10px;
  margin: 2px 0;
  border-radius: 10px;
  font-size: 12px;
  color: #1f2f4b;
  cursor: pointer;
}
.vehicle-menu button:hover {
  background: #e8f0ff;
}
.vehicle-menu .danger {
  color: #d9463b;
}
.vehicle-menu .danger:hover {
  background: #fde8e8;
  color: #b42318;
}

.sheet-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.sheet-section-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  border-left: 4px solid #2563eb;
  padding-left: 8px;
}
.sheet-pair-cell {
  display: flex;
  gap: 8px;
  align-items: center;
}
.sheet-pair-full {
  grid-column: span 3;
}
.sheet-pair-cell .sheet-input-sm,
.sheet-pair-cell .sheet-input {
  flex: 1 1 0;
  min-width: 0;
}
.sheet-inline-label {
  font-size: 12px;
  color: var(--text-sub);
  white-space: nowrap;
}
.basic-tools-row {
  display: flex;
  gap: 0;
  align-items: stretch;
  flex-wrap: nowrap;
  margin-top: 14px;
  padding: 0;
}
#basicInfoCard {
  flex: 1 1 0;
  padding: 0;
}

.sheet-created-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 0.9px;
}
.sheet-created-wrap .sheet-input-sm {
  padding-right: 48px; }

.sheet-grid {
  display: grid;
  grid-template-columns: 130px minmax(0, 1.3fr) 130px minmax(0, 1.1fr);
  column-gap: 18px;
  row-gap: 10px;
  align-items: center;
}
.sheet-rows {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
}
.sheet-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 130px minmax(0, 1fr);
  column-gap: 18px;
  row-gap: 10px;
  align-items: center;
}
.sheet-row.trip-row {
  grid-template-columns: 70px minmax(0, 1fr) 120px minmax(0, 1fr) 120px minmax(0, 1fr);
}

.info-sections {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.info-block {
  background: linear-gradient(180deg, #ffffff 0%, #f6f8ff 100%);
  border: 1px solid #dde5f5;
  border-radius: 14px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  padding: 14px 16px 16px;
}
.info-block.info-money {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}
.info-block-title {
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 10px;
}
.info-grid {
  display: grid;
  gap: 12px 14px;
}
.core-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.people-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.money-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.info-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.info-field .sheet-label {
  padding-left: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
}
.info-field .sheet-input,
.info-field .sheet-select {
  min-height: 38px;
  font-size: 14px;
}
.info-field.span-2 {
  grid-column: span 2;
}
@media (max-width: 720px) {
  .info-field.span-2 {
    grid-column: span 1;
  }
}
.info-dual {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.info-dual .sheet-input-sm {
  min-height: 36px;
}
.money-input {
  font-family: \"SFMono-Regular\", Consolas, \"Roboto Mono\", monospace;
  font-size: 15px;
  letter-spacing: 0.2px;
}
.sheet-label {
  justify-self: start;
  font-weight: 700;
  color: #1f2937;
  font-size: 13px;
  white-space: nowrap;
  min-width: 100px;
  padding-left: 13px;
}
.sheet-input,
.sheet-textarea,
.sheet-select {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid #cdd8ed;
  border-radius: 10px;
  font-size: 13px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(205, 216, 237, 0.6),
    0 10px 18px rgba(70, 106, 160, 0.08);
}
.sheet-input:focus,
.sheet-textarea:focus,
.sheet-select:focus {
  outline: none;
  border-color: #9fb7de;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 2px rgba(159, 183, 222, 0.45),
    0 12px 20px rgba(70, 106, 160, 0.15);
}
.sheet-input-sm {
  font-size: 12px;
  padding: 6px 8px;
  min-height: 32px;
}

.sheet-weekday-label {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 12px;
  color: var(--text-sub);
}

.sheet-range-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sheet-range-wide {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 0;
  min-width: 0;
  flex-wrap: nowrap;
}
.sheet-range-sep {
  font-size: 12px;
  color: var(--text-sub);
}
.sheet-vehicle-wrap {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
}
.sheet-vehicle-wrap .sheet-input-sm {
  flex: 1 1 0;
  min-width: 0;
}
.sheet-vehicle-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
}
.sheet-vehicle-label {
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  white-space: nowrap;
  margin-right: 4px;
}
.sheet-vehicle-cell .sheet-input-sm {
  flex: 1 1 0;
  min-width: 0;
}
.sheet-vehicle-cell .sheet-input-sm#sheetVehicleFromCalendar,
.sheet-vehicle-cell .sheet-input-sm#vehicleType {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%) !important;
  border: 1px solid #cdd8ed !important;
  border-radius: 10px;
  color: #1f2f4b;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(205, 216, 237, 0.6),
    0 10px 18px rgba(70, 106, 160, 0.08);
}
.sheet-vehicle-cell .sheet-input-sm#sheetVehicleFromCalendar:focus,
.sheet-vehicle-cell .sheet-input-sm#vehicleType:focus {
  outline: none;
  border-color: #9fb7de !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 0 0 2px rgba(159, 183, 222, 0.45),
    0 12px 20px rgba(70, 106, 160, 0.15);
}
.sheet-inline-label {
  font-size: 12px;
  color: #374151;
  white-space: nowrap;
}
.sheet-label.spacer {
  visibility: hidden;
}
.sheet-cell.spacer {
  visibility: hidden;
}
.sheet-inline-label {
  font-size: 12px;
  color: #4b5563;
  white-space: nowrap;
}
.sheet-label.spacer {
  visibility: hidden;
}
.sheet-cell.spacer {
  visibility: hidden;
}

.days-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.day-card {
  border: none;
  border-radius: 12px;
  padding: 10px 12px;
  background: transparent;
  box-shadow: none;
}
.day-card{
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
.itinerary-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.itinerary-head .sheet-section-title{
  margin:0;
}
.day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}
.day-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.day-field {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.day-label {
  font-size: 11px;
  color: #2f5c97;
  margin: 0;
  font-weight: 700;
}
.day-value-box,
.day-date-box {
  border: 1px solid #cad8f0;
  border-radius: 10px;
  padding: 7px 12px;
  min-height: 36px;
  font-size: 13px;
  font-weight: 700;
  background: #ffffff;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.day-card + .day-card{margin-top:14px;}
.day-value-box {
  min-width: 90px;
  letter-spacing: 0.3px;
}
.day-date-box {
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  letter-spacing: 0.4px;
}
.day-date-full {
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  line-height: 1.25;
}
.day-date-input {
  display: none;
}
.day-actions {
  margin-left: auto;
  display:flex;
  gap:8px;
  align-items:center;
}
.day-actions .month-btn {
  font-size: 11px;
  padding-inline: 10px;
}

.day-spots {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}
.spot-card {
  border: 1px solid #cdd8ed;
  border-radius: 12px;
  padding: 12px 14px;
  width: 100%;
  min-width: 0;
  background: linear-gradient(180deg,#ffffff 0%,#f5f8ff 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  box-shadow:
    0 10px 24px rgba(52, 84, 128, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}
.spot-place-input {
  border: 1px solid #cdd8ed;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  flex: 1 1 320px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    inset 0 -1px 0 rgba(205, 216, 237, 0.6),
    0 8px 16px rgba(70, 106, 160, 0.08);
}
.spot-row{display:flex;align-items:center;gap:12px;flex:1;min-width:0;flex-wrap:nowrap;}
.spot-time-row {display:flex;align-items:center;gap:6px;flex-wrap:nowrap;flex-shrink:0;}
.spot-time-input {
  border: 1px solid #0ea5e9;
  border-radius: 4px;
  padding: 8px 6px;
  font-size: 13px;
  background: #eff6ff;
  text-align: center;
}
.spot-time-hh {
  width: 62px;
}
.spot-time-mm {
  width: 62px;
}
.spot-stay {
  width: 62px;
}
.spot-time-unit {
  font-size: 11px;
  color: #0f172a;
}
.spot-time-label{
  font-size:11px;
  color:#0f172a;
  margin-right:4px;
}
.spot-btn-group{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
}
.spot-move-btn,
.spot-del-btn{
  padding:8px;
  min-width:32px;
  height:32px;
  border-radius:999px;
  border:1px solid #cbd5e1;
  background:#f8fafc;
  color:#0f172a;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 6px 14px rgba(15,23,42,.08);
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
.spot-move-btn:hover{
  transform:translateY(-1px);
  background:linear-gradient(145deg,#e2e8f0,#f1f5f9);
  border-color:#94a3b8;
  box-shadow:0 8px 18px rgba(15,23,42,.12),0 1px 0 rgba(255,255,255,.7) inset;
}
.spot-move-btn:disabled{
  opacity:.35;
  cursor:default;
  transform:none;
  box-shadow:none;
  background:#f8fafc;
}
.spot-del-btn {
  background:#fff1f2;
  border-color:#fecdd3;
  color:#b91c1c;
  min-width:64px;
  height:34px;
  border-radius:10px;
}
.spot-del-btn:hover {
  transform:translateY(-1px);
  background:#ffe4e6;
  border-color:#fda4af;
  color:#991b1b;
  box-shadow:0 8px 18px rgba(248,113,113,.12),0 1px 0 rgba(255,255,255,.7) inset;
}
.spot-moved{
  box-shadow:0 0 0 2px rgba(37,99,235,.28),0 12px 22px rgba(37,99,235,.18);
  transition:box-shadow .3s ease;
}

.fax-dialog-card {
  min-width: 340px;
  max-width: 460px;
  border-radius: 14px;
  border: 1px solid #dbeafe;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.16), 0 1px 0 #ffffff inset,
    0 -1px 0 rgba(15, 23, 42, 0.06) inset;
  background: linear-gradient(150deg, #ffffff 0%, #f6f9ff 55%, #eef3ff 100%);
}
.fax-input-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}
.fax-input-label {
  font-weight: 700;
  color: #1f2937;
  font-size: 12px;
}
.fax-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fax-input {
  flex: 1 1 0;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
.fax-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.fax-suffix {
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: linear-gradient(145deg, #f3f6fb, #e5ecf6);
  color: #1f2937;
  font-weight: 700;
  min-width: 52px;
  text-align: center;
}
.fax-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.fax-btn {
  padding: 8px 14px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: linear-gradient(145deg, #f3f6fb, #e5ecf6);
  color: #1f2937;
  font-size: 12px;
  cursor: pointer;
  flex: 1 1 0;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.fax-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(145deg, #e8eef8, #d9e3f2);
  border-color: #b7c5dd;
  box-shadow: 0 12px 20px rgba(15, 23, 42, 0.12), 0 1px 0 rgba(255, 255, 255, 0.7) inset;
}
.fax-btn-primary {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  color: #fff;
  border-color: #1d4ed8;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.26), 0 1px 0 rgba(255, 255, 255, 0.45) inset;
}
.fax-btn-primary:hover {
  background: linear-gradient(145deg, #1d4ed8, #1e3a8a);
  border-color: #1e3a8a;
  box-shadow: 0 14px 24px rgba(37, 99, 235, 0.3), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}
.fax-history-list {
  margin-top: 10px;
  padding: 6px;
  border: 1px dashed var(--border);
  border-radius: 10px;
  background: linear-gradient(145deg, #f9fafb, #eef3ff);
  max-height: 200px;
  overflow: auto;
  display: none;
}
.fax-history-item {
  all: unset;
  display: block;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #1f2937;
  background: linear-gradient(145deg, #f3f6fb, #e5ecf6);
  border: 1px solid #cbd5e1;
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.08), 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}
.fax-history-item:hover {
  background: linear-gradient(145deg, #e8eef8, #dbeafe);
  color: #1d4ed8;
  border-color: #b7c5dd;
}
.fax-close-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

@media print {
  body {
    margin: 0;
    background: #fff;
  }

  .page-header,
  .basic-tools-row,
  .sheet-card,
  #editorPanel,
  #btnReload,
  #btnPrintMonth,
  .floating-side-panel {
    display: none !important;
  }

  #monthLabel {
    display: block !important;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin: 10px 0;
  }
  .month-bar button {
    display: none !important;
  }
}
@media print {
    th:last-child {
    display: none !important;
    visibility: hidden !important;
  }

    td:last-child {
    display: none !important;
    visibility: hidden !important;
  }
}

.window-drag-area{
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  -webkit-app-region: drag;
  z-index: 9999;
  pointer-events: none;
}

