main > .container {
  padding: 70px 15px 20px;
}

.footer {
  background-color: #f5f5f5;
  font-size: 0.9em;
  height: 60px;
}

.footer > .container {
  padding-right: 15px;
  padding-left: 15px;
}

.not-set {
  color: #c55;
  font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after,
a.desc:after {
  content: "";
  left: 3px;
  display: inline-block;
  width: 0;
  height: 0;
  border: solid 5px transparent;
  margin: 4px 4px 2px 4px;
  background: transparent;
}

a.asc:after {
  border-bottom: solid 7px #212529;
  border-top-width: 0;
}

a.desc:after {
  border-top: solid 7px #212529;
  border-bottom-width: 0;
}

.grid-view th {
  white-space: nowrap;
}

.hint-block {
  display: block;
  margin-top: 5px;
  color: #999;
}

.error-summary {
  color: #a94442;
  background: #fdf7f7;
  border-left: 3px solid #eed3d7;
  padding: 10px 20px;
  margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
  padding-top: 7px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 767px) {
  .nav li > form > button.logout {
    display: block;
    text-align: left;
    width: 100%;
    padding: 10px 0;
  }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
  outline: none;
}

.form-group {
  margin-bottom: 1rem;
}

.job-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border-radius: 12px;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
}

.job-card .card-title {
  font-size: 1.2rem;
}

.btn-primary {
  border-radius: 10px;
}

.btn-outline-primary {
  border-radius: 10px;
}

#sheets-container {
  display: flex;
  flex-direction: row;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 12px;
  white-space: nowrap;
}

#sheets-container .card {
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

#sheets-container .sheets-row {
  display: flex;
  gap: 16px;
}

.panel-row {
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  margin-bottom: 16px;
  align-items: center;
}
.panel-row .form-label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}
.input-group-text {
  background: #f6f7fb;
  border-color: #e9eef8;
}
#panels-wrapper .remove-panel {
  min-width: 96px;
}
#add-panel {
  margin-top: 8px;
}
.sheet-info {
  font-size: 0.92rem;
  color: #2b2f36;
}

#sheets-container canvas {
  width: 100%;
  height: auto;
  background: linear-gradient(180deg, #fbfdff, #f8faff);
  border-radius: 4px;
  display: block;
}
@media (max-width: 767px) {
  .panel-row {
    padding: 10px;
  }
  .pt-5 {
    padding-top: 0.8rem !important;
  }
  .remove-panel {
    width: 100%;
    margin-top: 0.5rem;
  }
}

.table td,
.table th {
  padding: 0.35rem !important;
  vertical-align: middle !important;
}

.btn-group-sm .btn {
  padding: 0.15rem 0.35rem;
}

.image-wrapper {
  position: relative;
  width: 100px;
}

.product-image {
  max-width: 100px;
  max-height: 80px;
  display: block;
  transition: opacity 0.2s ease;
}

/* Default: image not yet cached */
.image-wrapper.needs-download .product-image {
  border: #a94442 1px dashed;
}

/* Hover reveals download icon */
.image-wrapper.needs-download:hover .download-icon {
  display: block;
}

/* Cached image: full opacity, no interactions */
.image-wrapper.has-local .product-image {
  border: none;
}

/* Download icon */
.download-icon {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  display: none;
}

.repro-pending-delete {
  opacity: 0.35;
}

/* Panels table styling - bottom border only, integrated inputs */
.sheet-panels-table {
  border: none !important;
  table-layout: auto;
  width: 100%;
}

.sheet-panels-table thead {
  border-bottom: 2px solid #dee2e6;
}

.sheet-panels-table thead th {
  border: none !important;
  border-bottom: 2px solid #dee2e6 !important;
  padding: 0.5rem 0.25rem !important;
  background-color: transparent !important;
  white-space: nowrap;
}

/* Column widths - based on header content, description takes remaining space */
.sheet-panels-table thead th,
.sheet-panels-table tbody td {
  width: 120px;
}


/* Actions column */
.sheet-panels-table thead th:nth-child(8),
.sheet-panels-table tbody td:nth-child(8) {
  width: auto;
  white-space: nowrap;
}

.sheet-panels-table thead th:last-child,
.sheet-panels-table tbody td:last-child {
  width: 50px;
}

.sheet-panels-table tbody tr {
  border: none !important;
  border-bottom: 1px solid #e9ecef !important;
}

.sheet-panels-table tbody tr:last-child {
  border-bottom: none !important;
}

.sheet-panels-table tbody td {
  border: none !important;
  padding: 0.25rem !important;
  vertical-align: middle !important;
}

/* Integrated input fields - look like writing directly in cells */
.sheet-panels-table tbody td input[type="number"],
.sheet-panels-table tbody td input[type="text"] {
  border: none !important;
  background: transparent !important;
  padding: 0.25rem 0.5rem !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  width: 100%;
  transition: background-color 0.15s ease;
  outline: none !important;
}

/* Number inputs - right aligned */
.sheet-panels-table tbody td input[type="number"] {
  text-align: right;
}

/* Text inputs - left aligned */
.sheet-panels-table tbody td input[type="text"] {
  text-align: left;
}

.sheet-panels-table tbody td input[type="number"]:focus,
.sheet-panels-table tbody td input[type="text"]:focus {
  background: #f8f9fa !important;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.sheet-panels-table tbody td input[type="number"]:hover,
.sheet-panels-table tbody td input[type="text"]:hover {
  background: #f8f9fa !important;
}

/* Remove form-control styling from panel inputs */
.sheet-panels-table tbody td .form-control {
  display: block;
  width: 100%;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
}

/* CRUD Toolbar Styles */
.crud-toolbar {
  margin-bottom: 1.5rem;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border: 1px solid #dee2e6;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.crud-toolbar h1 {
  font-size: 1.35rem;
  font-weight: 500;
  margin: 0;
  color: #495057;
  letter-spacing: -0.02em;
}

.crud-toolbar .btn-toolbar .btn {
  margin-left: 0.25rem;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.crud-toolbar .btn-toolbar .btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.crud-toolbar .btn i {
  font-size: 1.1rem;
}