/* QuickDraw Quote Tool - BlueMonkey embed CSS
   Scope: #quickdraw-tool only
   Do not import with '全置き換え'. Use '追加・更新'.
*/

#quickdraw-tool,
#quickdraw-tool * {
  box-sizing: border-box;
}

#quickdraw-tool {
  margin: 0;
  font-family: "Meiryo UI", Arial, sans-serif;
  background: #f4f6f8;
  color: #222;
}

#quickdraw-tool .app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

#quickdraw-tool .header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #35649A;
  color: white;
  padding: 16px 20px;
  border-radius: 10px;
}

#quickdraw-tool h1 {
  margin: 0;
  font-size: 24px;
}

#quickdraw-tool .sub {
  margin: 4px 0 0;
  opacity: 0.85;
}

#quickdraw-tool .lang-box {
  display: flex;
  gap: 8px;
  align-items: center;
}

#quickdraw-tool .layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

#quickdraw-tool .panel {
  background: white;
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#quickdraw-tool h2 {
  margin-top: 0;
  font-size: 18px;
}

#quickdraw-tool .options {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  align-items: flex-end;
}

#quickdraw-tool #fluteType {
  min-width: 130px;
}

#quickdraw-tool #fluteValue {
  width: 60px;
}

#quickdraw-tool #shapeMode {
  min-width: 90px;
}

#quickdraw-tool label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

#quickdraw-tool input,
#quickdraw-tool select {
  padding: 6px 8px;
  border: 1px solid #cfd6df;
  border-radius: 6px;
  font-size: 14px;
}

#quickdraw-tool .table-wrap {
  width: 100%;
  overflow-x: auto;
}

#quickdraw-tool table {
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

#quickdraw-tool th {
  background: #e9eef5;
}

#quickdraw-tool th,
#quickdraw-tool td {
  border: 1px solid #ccd5df;
  padding: 3px 4px;
  text-align: center;
}

#quickdraw-tool td input {
  width: clamp(42px, 5vw, 54px);
  text-align: center;
}

#quickdraw-tool .angle-input {
  width: clamp(40px, 5vw, 48px);
  text-align: center;
}

#quickdraw-tool .buttons {
  margin-top: 8px;
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
  align-items: center;
}

#quickdraw-tool button {
  background: #35649A;
  color: white;
  border: none;
  border-radius: 7px;
  padding: 9px 18px;
  cursor: pointer;
  font-size: 14px;
}

#quickdraw-tool button:hover {
  opacity: 0.9;
}

#quickdraw-tool .drawing-panel {
  min-height: 330px;
}

#quickdraw-tool svg {
  width: 100%;
  height: 280px;
  border: 1px solid #d5dce5;
  background: white;
}

#quickdraw-tool .placeholder {
  fill: #888;
  font-size: 16px;
}

#quickdraw-tool .tool {
  fill: #d0d2d8;
  stroke: #60666d;
  stroke-width: 1;
}

#quickdraw-tool .line {
  stroke: #888;
  stroke-width: 1;
}

#quickdraw-tool .dash {
  stroke: #999;
  stroke-width: 1;
  stroke-dasharray: 5 4;
}

#quickdraw-tool .title {
  font-size: 16px;
  font-weight: bold;
  fill: #222;
  text-anchor: start;
}

#quickdraw-tool .dia {
  font-size: 12px;
  fill: #111;
}

#quickdraw-tool .edge {
  font-size: 11px;
  fill: #111;
}

#quickdraw-tool .guide {
  stroke: #999;
  stroke-width: 0.8;
  stroke-dasharray: 4 3;
}

#quickdraw-tool .dim {
  stroke: #555;
  stroke-width: 1;
}

#quickdraw-tool .dimText {
  font-size: 12px;
  fill: #111;
}

#quickdraw-tool .note {
  font-size: 11px;
  fill: #222;
}

#quickdraw-tool .fluteText {
  font-size: 11px;
  fill: #111;
}

#quickdraw-tool .angleText {
  font-size: 11px;
  fill: #111;
}

#quickdraw-tool .angle-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

#quickdraw-tool .angle-type {
  min-width: 30px;
  text-align: right;
  font-size: 13px;
  color: #333;
}

#quickdraw-tool .angle-input {
  width: 48px;
  text-align: center;
}

#quickdraw-tool .options {
  margin-top: 18px;
  margin-bottom: 18px;
}

#quickdraw-tool .buttons {
  margin-top: 8px;
  display: flex;
  gap: 14px;
  align-items: center;
}

#quickdraw-tool #drawBtn {
  margin-left: 80px;
}

#quickdraw-tool .drawing-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

#quickdraw-tool .drawing-header h2 {
  margin: 0;
}

#quickdraw-tool #savePngBtn {
  padding: 7px 16px;
}

#quickdraw-tool .stage-cell {
  width: 50px;
  text-align: center;
  font-weight: 600;
  vertical-align: middle;
  background: #f3f5f8;
}

#quickdraw-tool .edge-cell {
  text-align: center;
  font-weight: 600;
  background: #fafafa;
}

#quickdraw-tool .edge-select {
  width: clamp(58px, 6vw, 70px);
  padding: 5px 6px;
  text-align: center;
}

#quickdraw-tool #drawBtn {
  background: #2f7d55;
  font-weight: 600;
  min-width: 120px;
}

#quickdraw-tool #savePngBtn {
  background: #2f7d55;
  font-weight: 600;
  min-width: 120px;
}

#quickdraw-tool #drawBtn,
#quickdraw-tool #savePngBtn {
  padding: 10px 22px;
  font-size: 15px;
}

#quickdraw-tool #addRowBtn,
#quickdraw-tool #deleteRowBtn {
  padding: 8px 14px;
  font-size: 13px;
}

#quickdraw-tool .pos-select {
  width: clamp(88px, 10vw, 115px);
  padding: 5px 6px;
  text-align: center;
}

#quickdraw-tool .auto-cell {
  text-align: center;
  font-weight: 600;
  color: #555;
  background: #fafafa;
  vertical-align: middle;
}

#quickdraw-tool .option-separator {
  align-self: flex-end;
  padding: 0 4px 7px;
  color: #9aa3ad;
  font-weight: 600;
}

#quickdraw-tool .option-message-row {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

#quickdraw-tool .option-message-row .options {
  margin-top: 0;
  margin-bottom: 0;
}

#quickdraw-tool .message {
  color: #b00020;
  font-size: 15px;
  font-weight: 600;
  min-height: 22px;
  line-height: 1.4;
  padding-bottom: 6px;
}

#quickdraw-tool #resetBtn {
  background: #797978;
  padding: 8px 14px;
  font-size: 13px;
}

#quickdraw-tool .flute-request-fixed {
  margin-top: 20px;     
  margin-bottom: 4px;   
  font-size: 13px;      
}
