
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding: 20px;
  background-color: #f5f5f5;
}

video {
    max-width: 80vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    margin: auto;
    object-fit: contain;
}

.container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
        
.table-container {
  position: relative;
  height: 100%;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
}

.tab {
    padding: 12px 24px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
}

.tab:hover {
    background-color: #f8f8f8;
}

.tab.active {
  color: #2196F3;
  border-bottom: 2px solid #2196F3;
  margin-bottom: -2px;
}

.tab-content {
  display: none;
  /*padding: 20px;*/
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.5s ease;
}
        
.context-menu {
  position: absolute;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  padding: 4px 0;
  width: 200px;
  z-index: 2;
}
        
.context-menu button {
  display: block;
  width: 100%;
  padding: 8px 16px;
  text-align: left;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
}
        
.context-menu button:hover {
  background-color: #f9fafb;
}

.menu-title {
  padding: 8px 12px;
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  font-weight: bold;
  border-radius: 4px 4px 0 0;
}    
        
.hidden {
  display: none;
}

.fixed-header {
  position: sticky;
  top: 0;
  z-index: 1;
}

.fixed-column {
  position: sticky;
  left: 0;
  z-index: 2;
  background-color:#f0f0f0;
}

.centered {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  overflow:scroll
}

#wrapper {
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  overflow: auto;
  position: absolute;
  display: flex;
}

.center {
  margin: auto;
}

.grid-cell {
  border: 1px solid #ddd;
  padding: 5px;
}

.grid-hcell {
  border: 1px solid #ddd;
  padding: 5px;
  text-align: center;
  font-weight: bold;
}

.green {
  background-color: #13aa52;
  border: 1px solid #13aa52;  
}

.blue {
  background-color: #1E90FF;
  border: 1px solid #1E90FF;  
}

.red {
  background-color: #D22B2B;
  border: 1px solid #D22B2B;  
}
        
.quick-btn {
  padding: 8px 15px;
  background-color: #27ae60;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
        
.quick-btn:hover {
  background-color: #2ecc71;
}
        
.output-container {
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 15px;
  height: 400px;
  overflow-y: auto;
  position: relative;
}

/* CSS */
.button-37 {
  border-radius: 4px;
  box-shadow: rgba(0, 0, 0, .1) 0 2px 4px 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  font-family: "Akzidenz Grotesk BQ Medium", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  font-weight: 400;
  outline: none;
  outline: 0;
  padding: 10px 25px;
  text-align: center;
  transform: translateY(0);
  transition: transform 150ms, box-shadow 150ms;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.button-37:hover {
  box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .button-37 {
    padding: 10px 30px;
  }
}

.circle-40 {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50%;
  font-size: 22px;
  color: #fff;
  text-align: center;
}

.ring-40 {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border-style: solid;
  border-width: 3px;
  color: transparent;
}

.circle {
  width: 50px;
  height: 50px;
  line-height: 50px;
  border-radius: 50%;
  font-size: 25px;
  color: #fff;
  text-align: center;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotate {
    animation: spin 1s linear infinite;
    display: inline-block;
}

.spin-loader {
    border: 8px solid #f3f3f3;
    border-radius: 50%;
    border-top: 8px solid #000;
    width: 30px;
    height: 30px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

.small-spin-loader {
    border: 4px solid #00FFFF;
    border-radius: 50%;
    border-top: 4px solid #0096FF;
    width: 15px;
    height: 15px;
    -webkit-animation: spin 1s linear infinite;
    animation: spin 1s linear infinite;
}

.data-table {
    table-layout: fixed;
    min-width: 1600px;  /* Total of all column widths */
    border-collapse: collapse;
}
.data-table th,
.data-table td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/* Allow description and title to wrap */
.data-table td.wrap-cell {
    white-space: normal;
    word-wrap: break-word;
}

.tab-container {
    overflow-x: auto;
    overflow-y: auto;
}

/*
.tab-container {
  width: 99%;
  margin: 0 auto;
  overflow-x: auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.data-table td {
  padding: 10px 2px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
}

.data-table th {
  background-color: #f8f8f8;
  font-weight: bold;
}
*/

.add-button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #007bff;
  color: white;
  border: none;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.add-button:hover {
  background-color: #0069d9;
}

.remove-button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #dc3545;
  color: white;
  border: none;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.remove-button:hover {
  background-color: #c82333;
}

  .run-button {
    background: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .run-button:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
  }
  
  .run-button:active {
    background-color: #e0e0e0;
    transform: scale(0.98);
  }

.message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  font-weight: 550;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

        
.modal-container {
  background-color: white;
  border-radius: 8px;
  max-width: 600px;
  width: 100%;
  max-height: 80%;
  overflow:scroll;  
  padding: 24px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.modal-content {
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  max-width: 80%;
  max-height: 80%;
  overflow: auto;
  position: relative;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  display: none;
}
                
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 18px;
  font-weight: 500;
  color: #111827;
  margin: 0;
}

textarea:focus, input:focus{
    outline: none;
}

.no-box {
    background-color: transparent;
    border: 0px solid;
}

.description-cell {
  max-width: 400px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s ease;
}

/*input::-webkit-calendar-picker-indicator {
  display: none !important;
}

.inputBarcodeField::-webkit-calendar-picker-indicator {
  display:none !important;
}
*/

::placeholder {
   text-align: center; 
}

/* or, for legacy browsers */

::-webkit-input-placeholder {
   text-align: center;
}

        .close-btn {
            background: none;
            border: none;
            cursor: pointer;
            color: #6b7280;
        }
        
        .form-group {
            margin-bottom: 16px;
        }
        
        .form-label {
            display: block;
            font-size: 14px;
            font-weight: 500;
            color: #374151;
            margin-bottom: 4px;
        }
        
        .form-control {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            font-size: 14px;
        }
        
        .form-control:focus {
            outline: none;
            border-color: #2563eb;
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
        }
        
        .form-textarea {
            min-height: 80px;
            resize: vertical;
            font-family: inherit;
        }

        .modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            margin-top: 24px;
        }
        
        .footer-left {
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .footer-center {
            flex: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        
        .footer-right {
            display: flex;
            align-items: center;
            gap: 12px;
        }

.btn {
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: #2563eb;
  color: white;
}
        
.btn-primary:hover {
  background-color: #1d4ed8;
}
        
.btn-delete {
  background-color: #D22B2B;
  color: white;
}
        
.btn-secondary {
  background-color: white;
  color: #4b5563;
  border-color: #d1d5db;
}
        
.btn-secondary:hover {
  background-color: #f9fafb;
}

tr.dragging {
    opacity: 0.5;
    background-color: #e0e0e0;
}

tr.over {
  border-top: 2px solid #808080;
  /*border-top: 3px solid #007bff;*/
}






