
.items-grid-container {
    text-align: center;
}

.items-grid-container tr {
    border-top: 1px solid #ccc;
}

.backgrid a {
    color: #505050;
}

.backgrid th {
    color: #505050 !important;
    overflow: inherit !important;
    text-overflow: inherit !important;
    font-size: 14px !important;
    border: 1px solid #ccc;
}

.backgrid tr {
    font-size: 13px !important;
    border-top: 1px solid #ccc;
}

.backgrid tr td {
    overflow: visible !important;
}

.backgrid td {
    padding-left: 1px;
    padding-right: 1px;
    font-size: 12px;
    border-right: 0.5px solid #DDD;
    border-left: 0.5px solid #DDD;
    cursor: pointer;
}

.backgrid thead th {
    background-color: #eee !important;
}

.warning {
    background-color: red !important;
    color: #FFFFFF !important;
    font-weight: bold;
}


/*row width classes*/
.heat-row {
    min-width: 70px !important;
}
    .HeatName {
        min-width: 70px !important;
    }
.datetime-row {
    min-width: 150px !important;
}
    .CutStart { min-width: 150px !important; }
    .CutEnd   { min-width: 150px !important; }
    .ShipTime { min-width: 150px !important; }

.production-date-row{
    min-width:100px !important;
}

    .ProductionDate {
        min-width: 100px !important;
    }
.shift-crew-row {
    min-width: 35px !important;
}
    .Shift {
        min-width: 35px !important;
    }
    .CrewId {
        min-width: 35px !important;
    }


.onRightClickSelectedRow {
    background-color: lightblue !important;
}

    .onRightClickSelectedRow td {
        font-weight: 700;
    }



.hasSulfurBG {
    background-color: #b3ffb3;
}

.nonHasSulfurBG {
    background-color: #ff9999;
}
.modal-print-tag-confirmation {
    width: 520px;
    background: #f9fafb;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    border: 1px solid #e5e7eb;
    padding: 0;
}

.modal-print-tag-confirmation .modal-header {
    border-bottom: 1px solid #e5e7eb !important;
    background: #fff;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    padding: 20px 28px 10px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}
.modal-print-tag-confirmation .modal-header h5 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    color: #22223b;
    letter-spacing: 0.01em;
}

.modal-print-tag-confirmation .modal-body {
    padding: 22px 28px 14px 28px;
    background: #f9fafb;
    max-height: 600px;
    overflow-y: auto;
}

.field-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
    gap: 16px;
}
.field-label {
    width: 120px;
    font-size: 1em;
    font-weight: 500;
    color: #333;
    margin-top: 0;
    letter-spacing: .03em;
}

.field-input,
.field-select,
.print-comments {
    width: 220px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 1em;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;

    /* Increased height & padding for all */
    min-height: 40px !important;
    height: 40px;
    padding: 8px 12px;
}

.field-input:focus,
.field-select:focus,
.print-comments:focus {
    border-color: #4463d1;
    box-shadow: 0 0 0 2px #e3e9fa;
}

/* Comments textarea */
.print-comments {
    min-height: 80px !important;
    height: 80px;
    resize: vertical;
    width: 100%;
}

.comments-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
}

.comments-row .field-label {
    margin-bottom: 4px;
    width: auto;
    margin-top: 0;
}

/* Required star */
.required-star {
    color: #e63946;
    font-size: 1.12em;
    margin-left: 4px;
    font-weight: bold;
    vertical-align: middle;
}

/* Footer and buttons */
.modal-print-tag-confirmation .modal-footer {
    border-top: 1px solid #e5e7eb;
    background: #f3f4f6;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 18px 28px;
}

.modal-footer .btn {
  flex: 1; 
  text-align: center;
}
.modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* Flex row for modal footer buttons, full width */
.footer-btn-bar {
    display: flex;
    width: 100%;
    gap: 1rem; /* similar to space-x-4 */
}

.w-half {
    width: 50%;
    min-width: 0; /* allow shrinking */
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Accept button: Tailwind blue */
.btn-primary {
    background: #2563eb !important; /* bg-blue-600 */
    color: #fff !important;
    border: none;
}
.btn-primary:hover,
.btn-primary:focus {
    background: #1d4ed8 !important; /* bg-blue-700 */
    color: #fff !important;
}

/* Cancel button: subtle gray */
.btn-cancel {
    background: #d6d8dd !important;
    color: #22223b;
    border: 1px solid #d1d5db;
}
.btn-cancel:hover,
.btn-cancel:focus {
    background: #e5e7eb;
    color: #22223b;
}

/* Remove justify-content from .modal-footer so buttons use full width */
.modal-print-tag-confirmation .modal-footer {
    justify-content: unset;
    padding: 18px 28px;
    background: #f3f4f6;
    border-top: 1px solid #e5e7eb;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}



.btn {
    border-radius: 8px;
    font-size: 1em;
    padding: 8px 26px;
    font-weight: 500;
    letter-spacing: .01em;
    border: none;
    outline: none;
    background: #edeef6;
    color: #333;
    transition: background 0.2s, color 0.2s;
}


.close {
    font-size: 1.7em;
    color: #888;
    opacity: 0.7;
    background: transparent;
    border: none;
    margin-right: 0;
    padding: 0 0 0 10px;
    transition: color 0.15s;
}
.close:hover {
    color: #e63946;
    opacity: 1;
}

#warning {
    color: #e63946;
    font-size: .92em;
    margin-top: 4px;
    display: block;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance: textfield; /* Firefox */
}


.blurred-bg {
    filter: blur(5px);
    transition: filter 0.2s;
    pointer-events: none;
}

/* Responsive: if needed */
@media (max-width: 650px) {
    .modal-print-tag-confirmation {
        width: 98vw;
        min-width: 0;
        padding: 0;
    }
    .modal-print-tag-confirmation .modal-body,
    .modal-print-tag-confirmation .modal-header,
    .modal-print-tag-confirmation .modal-footer {
        padding-left: 12px;
        padding-right: 12px;
    }
    .field-label {
        width: 90px;
        font-size: .97em;
    }
    .field-input,
    .field-select,
    .print-comments {
        width: 100%;
        min-width: 0;
    }
}

#printLengthToggle label.btn,
#editLengthToggle  label.btn {
  border: 1px solid #c7c7c7 !important;
  padding: 6px 12px !important;
  cursor: pointer !important;
  user-select: none !important;
  background: #f3f4f6 !important;  /* light gray */
  color: #374151 !important;       /* gray-700 */
  box-shadow: none !important;
}

/* Inactive style (explicit class we apply via JS) */
#printLengthToggle label.btn.btn-inactive,
#editLengthToggle  label.btn.btn-inactive {
  background: #f3f4f6 !important;
  color: #374151 !important;
  border-color: #c7c7c7 !important;
}

/* HOT selected */
#printLengthToggle label.btn.btn-hot-active,
#editLengthToggle  label.btn.btn-hot-active {
  background: #dc2626 !important;  /* red-600 */
  color: #fff !important;
  border-color: #b91c1c !important; /* red-700 */
}

/* COLD selected */
#printLengthToggle label.btn.btn-cold-active,
#editLengthToggle  label.btn.btn-cold-active {
  background: #2563eb !important;  /* blue-600 */
  color: #fff !important;
  border-color: #1d4ed8 !important; /* blue-700 */
}

/* Optional pill accents on the value labels */
.active-length-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 18px;
  vertical-align: middle;
}
.pill-blue { background: #dbeafe; color: #1e40af; } /* blue-100 on blue-900 text */
.pill-red  { background: #fee2e2; color: #7f1d1d; } /* red-100 on red-900 text */

/* Disabled inputs visual */
input.disabled {
  background-color: #f9fafb !important;
  color: #6b7280 !important;
  cursor: not-allowed !important;
}

/* Grid layout */
.modal-body .form-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  grid-column-gap: 16px;
  grid-row-gap: 12px;
}

/* Let a row span full width */
.modal-body .form-grid .full {
  grid-column: 1 / -1;
}

/* Pair rows: two equal columns on the right side */
.modal-body .pair-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* Align label column */
.modal-body .form-label {
  align-self: center;
  color: #3c4043;
  font-weight: 600;
}

/* Inputs look consistent */
.modal-body .form-control,
.modal-body .field-input,
.modal-body .field-select {
  width: 100%;
}

/* Right-aligned numbers */
.modal-body input[type="number"] {
  text-align: right;
}

/* Toggle spacing */
#printLengthToggle .btn { min-width: 72px; }

/* Optional: make readonly input look distinct but aligned */
.modal-body .readonly-input[readonly] {
  background-color: #f8f9fa;
  cursor: default;
}

.printer-select {
    margin-top: 45px;
}

.printerLabel {
    margin-top: 35px;
}

.length-note {
  padding: 6px 10px;
  font-size: 0.9em;
  text-align: center;
  margin: 10px auto;
  width: fit-content;
}