/* Floor plan sketch pad (sketch.html) */
.sketch-page [hidden] { display: none !important; } /* .btn sets display, which would otherwise override hidden */
.sk-section { padding-top: 28px; }
/* the sketch pad uses nearly the full screen width (the rest of the page keeps its normal margins) */
.sk-section > .wrap { max-width: 1720px; padding: 0 16px; }
@media (max-width: 640px) { .sk-section > .wrap { padding: 0 6px; } .sk-app { border-radius: 10px; } }
.sk-app { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.sk-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding: 10px; background: var(--ink); }
.sk-group { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-toolbar button {
  font-family: var(--head); text-transform: uppercase; letter-spacing: .05em; font-size: .85rem;
  min-height: 40px; min-width: 40px; padding: 6px 12px; border-radius: 8px; cursor: pointer;
  background: rgba(255,255,255,.08); color: var(--white); border: 1px solid rgba(255,255,255,.25);
}
.sk-toolbar button:hover { background: rgba(255,255,255,.18); }
.sk-toolbar button[aria-pressed="true"] { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.sk-toolbar button:disabled { opacity: .4; cursor: default; }
.sk-toolbar button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Drawing (with the room table under it) on the left, the always-open entry sidebar on the right */
.sk-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; }
.sk-body > * { min-width: 0; }
.sk-left { border-right: 1px solid var(--line); min-width: 0; }
.sk-canvas-wrap { position: relative; background: #fff; }
#sk-canvas { display: block; width: 100%; height: min(70vh, 640px); min-height: 380px; touch-action: none; cursor: crosshair; }
#sk-canvas.tool-select { cursor: default; }
#sk-canvas.tool-pan { cursor: grab; }
.sk-hint { position: absolute; left: 10px; bottom: 10px; right: 10px; pointer-events: none; font-size: .9rem; color: var(--muted); }
.sk-hint span { background: rgba(255,255,255,.9); padding: 3px 8px; border-radius: 6px; }

.sk-panel { background: var(--paper); position: relative; }
/* the sidebar runs the full length of the drawing plus the room table and scrolls on its own;
   nothing else on the page has an inner scrollbar */
.sk-panel-body { padding: 14px; display: flex; flex-direction: column; gap: 12px;
  position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.sk-panel-body > * { flex-shrink: 0; }.sk-box { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.sk-box h3 { font-size: 1rem; margin: 0 0 10px; }
.sk-row { margin-bottom: 10px; }
.sk-row label, .sk-box label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); }
.sk-row input, .sk-row select { margin-top: 4px; padding: 8px 10px; font-size: 1rem; }
.sk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sk-two .btn { padding: 10px 8px; font-size: .85rem; }
.sk-full { width: 100%; justify-content: center; }
.sk-full + .sk-full { margin-top: 8px; }
#sk-quick.sk-editing, #sk-openbox.sk-editing { border: 2px solid var(--gold); background: var(--wood-light); }
.sk-q-note { font-size: .85rem; color: var(--muted); margin: -4px 0 10px; }
.sk-q-tip { font-size: .8rem; color: var(--muted); margin: -4px 0 10px; }
#sk-o-note { margin: 8px 0 0; }
.sk-list li { flex-wrap: wrap; }
.sk-list li small { width: 100%; color: var(--muted); font-size: .82rem; margin-top: -2px; }
.sk-q-other { margin-top: 6px; padding: 8px 10px; font-size: 1rem; width: 100%; }
.sk-danger { border-color: #a33; color: #a33; }
.sk-danger:hover { background: #a33; color: #fff; }
.sk-list { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.sk-list li { display: flex; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.sk-list li:last-child { border-bottom: 0; }
.sk-list li.sk-empty { color: var(--muted); cursor: default; }
.sk-list li span:last-child { color: var(--muted); white-space: nowrap; }
.sk-total { margin: 8px 0 0; font-weight: 600; color: var(--ink); }
.sk-total:empty { display: none; }
.sk-opts label { display: flex; align-items: center; gap: 8px; font-weight: 400; margin-bottom: 6px; }
.sk-opts input { width: auto; margin: 0; }
.sk-link { background: none; border: 0; padding: 0; color: #a33; text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; }
.sk-note { font-size: .92rem; color: var(--muted); margin-top: 12px; }

/* Room schedule table below the drawing */
.sk-schedule { padding: 16px; border-top: 1px solid var(--line); }
.sk-schedule h3 { font-size: 1.05rem; margin: 0 0 10px; }
.sk-table-wrap { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; } /* no sideways scrolling: the table fits */
.sk-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.sk-table th { background: var(--ink); color: #fff; font-family: var(--head); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; font-size: .8rem; text-align: left; padding: 9px 10px; vertical-align: bottom; line-height: 1.2; }
.sk-table th .sm { display: none; }
.sk-table td { overflow-wrap: break-word; hyphens: manual; }
.sk-table td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; }
.sk-table td.num { white-space: nowrap; }
.sk-table td small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.35; }
.sk-table tbody tr { cursor: pointer; }
.sk-table tbody tr:nth-child(even) { background: var(--paper); }
.sk-table tbody tr:hover { background: var(--wood-light); }
.sk-table tbody tr.sk-sel { background: var(--wood-light); box-shadow: inset 4px 0 0 var(--gold); }
.sk-table tbody tr.sk-empty-row { cursor: default; background: none; }
.sk-table tbody tr.sk-empty-row td { color: var(--muted); }
.sk-table tfoot td { font-weight: 600; background: var(--paper); border-top: 2px solid var(--ink); }
.sk-table td:first-child { font-weight: 600; }
/* every column except Room is centered, headings included */
.sk-table th:not(:first-child), .sk-table td:not(:first-child) { text-align: center; }
@media (max-width: 640px) { /* phones: shorter headings and tighter cells so all 7 columns fit */
  .sk-schedule { padding: 12px 6px; }
  .sk-table { font-size: .78rem; }
  .sk-table th { font-size: .66rem; letter-spacing: .02em; padding: 6px 3px; }
  .sk-table td { padding: 6px 3px; }
  .sk-table td.num { white-space: normal; } /* "12' x 14'" may wrap after the x */
  .sk-table td small { font-size: .7rem; }
  .sk-table th .lg { display: none; }
  .sk-table th .sm { display: inline; }
}
.sk-muted { color: var(--muted); }
.sk-error { color: #a33; font-weight: 600; }
.sk-tips { padding-left: 1.2em; }
.sk-tips li { margin-bottom: 8px; }
.sk-send { padding-top: 0; }

@media (max-width: 900px) {
  /* phones/tablets: drawing, room table, then the entry boxes */
  .sk-body { grid-template-columns: 1fr; }
  .sk-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .sk-panel-body { position: static; max-height: 60vh; }
  #sk-canvas { height: 62vh; min-height: 340px; }
}
@media (max-width: 640px) {
  .sk-toolbar { padding: 8px; }
  .sk-toolbar button { padding: 6px 9px; font-size: .78rem; }
  .sk-hint { font-size: .78rem; left: 6px; right: 6px; bottom: 6px; }
}
