.cncbul-container-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  transition: opacity 0.3s ease;
}

.cncbul-container-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 600px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  transform: translate(-50%, -50%);
  z-index: 9999;
  overflow: hidden;
  animation: fadeIn 0.3s ease;
  font-family: "Inter", sans-serif;
}

.cncbul-container-header {
  background: #004AAD;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cncbul-container-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.cncbul-container-close {
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  color: #fff;
}

.cncbul-container-body {
  padding: 20px;
}

.cncbul-machine-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 10px;
}

.cncbul-machine-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #eee;
}

.cncbul-container-footer {
  text-align: right;
  background: #f9f9f9;
  padding: 10px 20px;
  border-top: 1px solid #ddd;
}

.cncbul-container-footer .button {
  background: #004AAD;
  color: white;
  border-radius: 8px;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.cncbul-container-footer .button:hover {
  background: #002f73;
}

@keyframes fadeIn {
  from {opacity: 0; transform: translate(-50%, -60%);}
  to {opacity: 1; transform: translate(-50%, -50%);}
}

.cncbul-result-fit { color: #008000; font-weight: 600; }
.cncbul-result-too-large { color: #c00; font-weight: 600; }

.cncbul-container-section {
    text-align: center;
    margin-top: 25px;
}
#cncbul-container-btn {
    background: #e67e22;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease-in-out;
}
#cncbul-container-btn:hover {
    background: #d35400;
}
