body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  background: #f0f0f1;
  color: #3c434a;
  font-size: 13px;
  line-height: 1.4em;
  min-width: 600px;
}

.sidebar {
  position: sticky;
  top: 0;
  width: 250px;
  background-color: #2c3e50;
  color: #ecf0f1;
  padding: 15px 0;
  height: 100vh;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.sidebar-nav {
  flex: 1;
  overflow-y: auto;
}
.sidebar-user {
  padding: 16px 20px 4px;
  border-top: 1px solid rgba(236, 240, 241, 0.15);
  font-size: 12px;
}
.sidebar-user-name {
  font-weight: bold;
}
.sidebar-user-role {
  color: #95a5a6;
  margin: 4px 0 8px;
}
.sidebar-logout {
  padding: 6px 0 !important;
  color: #e74c3c !important;
}
.sidebar a {
  text-decoration: none;
  color: #ecf0f1;
  display: block;
  padding: 10px 20px;
}
.sidebar a:hover {
  background-color: #34495e;
}

.sidebar a.active {
  background-color: #34495e;
  border-left: 4px solid #3498db;
}
.menu-counter {
  background-color: #e74c3c;
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
  padding: 2px 6px;
  margin-left: 10px;
}
.content {
  flex: 1;
  padding: 20px;
}

.table-striped tr:nth-child(even) {
  background-color: #fff;
}

.table-striped tr:hover {
  background-color: #ffc;
}

.table-striped2 tr:nth-child(even) {
  background-color: #ddd;
}

.table-striped2 tr:hover {
  background-color: #fcc;
}

.table-striped > tbody > tr > td {
  border-bottom: 2px solid #000;
}

#demand tr {
  transition: all 0.3s ease;
}

#table-onenote tbody tr td:has(small.delay),
#demand td.delay {
  background-color: #f0c7c7;
}

#table-onenote tbody tr td:has(small.ship-soon),
#demand td.ship-soon {
  background-color: #ffeab2;
}

#table-onenote tbody tr td:has(small.ship-near),
#demand td.ship-near {
  background-color: #e1fdb9;
}

#table-onenote tbody tr td:has(small.ship-approach),
#demand td.ship-approach {
  background-color: #f9f9f9;
}

.text-danger {
  color: #cf352f;
}

.text-warning {
  color: #fabd3f;
}

.text-success {
  color: #72cf2f;
}

.text-muted {
  color: rgba(132, 132, 132, 0.7) !important;
}

button {
  display: block !important;
  margin: 6px 0 !important;
}

button[disabled] {
  cursor: auto;
}

.button-small {
  min-height: 26px !important;
  line-height: 2.18181818 !important;
  padding: 0 8px !important;
  font-size: 11px !important;
}

.button-success {
  background: #1ba11d;
  border-color: #1ba11d;
  color: #fff;
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  line-height: 2.15384615;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  border-width: 1px;
  border-style: solid;
  border-radius: 3px;
  white-space: nowrap;
  box-sizing: border-box;
  cursor: pointer;
}

.button-success:hover {
  background: #178519;
  border-color: #178519;
}

.button-warning {
  background: #fabd3f !important;
  border-color: #fabd3f !important;
  color: #fff !important;
  display: inline-block !important;
  text-decoration: none !important;
  font-size: 13px !important;
  line-height: 2.15384615 !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border-width: 1px !important;
  border-style: solid !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  border-radius: 3px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
  cursor: pointer;
}

.button-danger {
  background: transparent;
  border-color: #cf352f;
  color: #cf352f;
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  line-height: 2.15384615;
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  border-width: 1px;
  border-style: solid;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 3px;
  white-space: nowrap;
  box-sizing: border-box;
  width: 100%;
  cursor: pointer;
}

.button-secondary {
  color: #2271b1;
  border-color: #2271b1;
  background: #f6f7f7;
  vertical-align: top;
  font-size: 13px;
  border-radius: 3px;
  border-width: 1px;
  border-style: solid;
  min-height: 30px;
  cursor: pointer;
}

.button-primary {
  background: #2271b1;
  border-color: #2271b1;
  color: #fff;
  text-decoration: none;
  text-shadow: none;
  font-size: 13px;
  border-radius: 3px;
  border-width: 1px;
  border-style: solid;
  min-height: 30px;
  /* width: 100%; */
  cursor: pointer;
}

.button-secondary[disabled],
.button-secondary[disabled]:hover,
.button-primary[disabled],
.button-primary[disabled]:hover {
  color: #a7aaad !important;
  border-color: #dcdcde !important;
  background: #f6f7f7 !important;
  box-shadow: none !important;
  cursor: default;
  transform: none !important;
}

tr.inventory-warning {
  background-color: #cf352f !important;
  color: #fff !important;
}

.inventory-column {
  display: none;
}

.dashicons-admin-generic {
  animation-name: spin;
  animation-duration: 3000ms;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
}

/* Pagination Styles */
.tablenav-pages {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 10px 0;
}

.tablenav-pages .displaying-num {
  margin-right: 10px;
  color: #555;
  font-size: 13px;
}

.tablenav-pages a,
.tablenav-pages .tablenav-pages-navspan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  margin: 0 2px;
  padding: 0 5px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background-color: #f7f7f7;
  color: #2271b1;
  text-decoration: none;
  font-size: 13px;
  line-height: 1;
  transition: all 0.2s ease;
}

.tablenav-pages a:hover {
  background-color: #e9e9e9;
  border-color: #999;
  color: #135e96;
}

.tablenav-pages .tablenav-pages-navspan.button.disabled {
  background-color: #2271b1;
  border-color: #2271b1;
  color: #fff;
  cursor: default;
}

.tablenav-pages .paging-input {
  display: inline-flex;
  align-items: center;
  margin: 0 6px;
  font-size: 13px;
  color: #555;
}

.tablenav-pages .current-page {
  width: 45px;
  height: 30px;
  margin: 0 5px;
  padding: 0 5px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.5;
}

.tablenav-pages .total-pages {
  font-weight: 500;
}

.tablenav-pages .first-page,
.tablenav-pages .prev-page,
.tablenav-pages .next-page,
.tablenav-pages .last-page {
  font-weight: bold;
}

/* Table Styles */
.wp-list-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.wp-list-table th {
  background-color: #f9f9f9;
  border-bottom: 1px solid #e1e1e1;
  color: #32373c;
  font-weight: 600;
  padding: 8px 10px;
  text-align: left;
  line-height: 1.3em;
  font-size: 14px;
}

.wp-list-table th.sorted {
  background-color: #f0f0f0;
}

.wp-list-table th.sorted.asc .sorting-indicator:before {
  content: '▲';
  display: inline-block;
  vertical-align: middle;
  font-size: 10px;
}

.wp-list-table th.sorted.desc .sorting-indicator:before {
  content: '▼';
  display: inline-block;
  vertical-align: middle;
  font-size: 10px;
}

.wp-list-table td {
  padding: 10px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f1f1;
  color: #555;
  font-size: 13px;
}

.wp-list-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.wp-list-table tr:hover {
  background-color: #f5f5f5;
}

.wp-list-table .no-items td {
  padding: 15px;
  text-align: center;
  color: #888;
  font-style: italic;
}

/* Table Header and Footer */
.wp-list-table thead,
.wp-list-table tfoot {
  background-color: #f9f9f9;
}

/* Sorting Indicators */
.sorting-indicator {
  display: inline-block;
  visibility: hidden;
  width: 12px;
  height: 12px;
  margin-left: 5px;
  text-align: center;
  line-height: 1;
}

.sorted .sorting-indicator {
  visibility: visible;
}

.wp-list-table th a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #32373c;
}

/* Tablenav (top and bottom controls) */
.tablenav {
  clear: both;
  height: auto;
  margin: 15px 0;
  padding: 8px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 3px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.tablenav.top {
  margin-bottom: 5px;
}

.tablenav.bottom {
  margin-top: 5px;
}

.tablenav .actions {
  padding: 0 8px;
}

.tablenav .alignleft {
  float: left;
  margin-right: 10px;
}

.tablenav .alignright {
  float: right;
  margin-left: 10px;
}

/* Help Tip Styles */
.help-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;

  font-size: 11px;
  font-weight: bold;
  /* margin-left: 5px; */
  cursor: help;
  vertical-align: middle;
  text-align: center;
}

/* Highlight effect for released rows */
.highlight-row {
  background-color: rgba(46, 204, 113, 0.2) !important;
  transition: background-color 0.5s ease;
}

/* Released badge styling */
.released-badge {
  display: inline-block;
  color: #2ecc71;
  font-weight: bold;
  line-height: 1;
}

.column-release-actions {
  white-space: nowrap;
  vertical-align: middle;
  display: flex;
  justify-content: flex-end;
  gap: 5px;
}

.column-release-actions .button {
  width: auto;
  margin: 0 2px 2px 0;
}

.column-release-actions .button-danger {
  width: auto;
  background-color: #cf352f;
  color: white;
}

.column-release-actions .button-danger i {
  font-size: 16px;
}

.help-tip.blue {
  background-color: #2271b1;
  color: #fff;
}

/* Tippy.js Theme Styles */
.tippy-box[data-theme~='eurohell'] {
  background-color: #333;
  color: #fff;
  font-size: 12px;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  line-height: 1.4;
}

.tippy-box[data-theme~='eurohell'] .tippy-content {
  padding: 8px 12px;
}

.tippy-box[data-theme~='eurohell'][data-placement^='top']
  > .tippy-arrow::before {
  border-top-color: #333;
}

.tippy-box[data-theme~='eurohell'][data-placement^='bottom']
  > .tippy-arrow::before {
  border-bottom-color: #333;
}

.tippy-box[data-theme~='eurohell'][data-placement^='left']
  > .tippy-arrow::before {
  border-left-color: #333;
}

.tippy-box[data-theme~='eurohell'][data-placement^='right']
  > .tippy-arrow::before {
  border-right-color: #333;
}

.undo-produced {
  color: #bbb;
  float: right;
  margin-top: 3px;
}

.undo-produced:hover {
  color: #cf352f;
  cursor: pointer;
}

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

.bubble.large {
  width: 360px;
  font-size: 18px;
  text-align: left;
  text-transform: uppercase;
}

.bubble.shadow {
  box-shadow:
    0 -4px #fff,
    0 -8px #000,
    4px 0 #fff,
    4px -4px #000,
    8px 0 #000,
    0 4px #fff,
    0 8px #000,
    -4px 0 #fff,
    -4px 4px #000,
    -8px 0 #000,
    -4px -4px #000,
    4px 4px #000,
    4px 12px rgba(0, 0, 0, 0.1),
    12px 4px rgba(0, 0, 0, 0.1),
    8px 8px rgba(0, 0, 0, 0.1);
}

.bubble {
  position: relative;
  display: inline-block;
  margin: 20px;
  text-align: center;
  font-family: 'Press Start 2P', cursive;
  font-size: 16px;
  line-height: 1.3em;
  background-color: #fff;
  color: #000;
  padding: 12px;
  box-shadow:
    0 -4px #fff,
    0 -8px #000,
    4px 0 #fff,
    4px -4px #000,
    8px 0 #000,
    0 4px #fff,
    0 8px #000,
    -4px 0 #fff,
    -4px 4px #000,
    -8px 0 #000,
    -4px -4px #000,
    4px 4px #000;
  box-sizing: border-box;
  width: 200px;
}

.bubble.bottom::after {
  height: 4px;
  width: 4px;
  bottom: -8px;
  right: 32px;
  box-shadow:
    0 4px #000,
    0 8px #000,
    0 12px #000,
    0 16px #000,
    -4px 12px #000,
    -8px 8px #000,
    -12px 4px #000,
    -4px 4px #fff,
    -8px 4px #fff,
    -4px 8px #fff,
    -4px 0 #fff,
    -8px 0 #fff,
    -12px 0 #fff;
}

.bubble::after {
  content: '';
  display: block;
  position: absolute;
  box-sizing: border-box;
}

#viktorlayer:after {
  display: inline-block;
  content: '\00d7'; /* This will render the 'X' */
  position: absolute;
  color: #fff;
  font-size: 20px;
}

.checked-row {
  background-color: #00c02d !important;
  color: white !important;
  transition: background-color 0.9s ease;
}

#signature-overlay {
  display: none; /* Initially hidden */
  position: fixed; /* Stays fixed on the screen */
  top: 0;
  left: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  background: rgb(0, 0, 0); /* Semi-transparent black background */
  z-index: 999; /* Should be lower than the modal's z-index but higher than the background content */
}

#signature-pad-modal,
#signature-display-modal {
  display: none; /* Initially hidden */
  position: fixed; /* Fixed position relative to the viewport */
  top: 50%; /* 50% from the top */
  left: 50%; /* 50% from the left */
  transform: translate(
    -50%,
    -50%
  ); /* Move it back by 50% of its own width/height to center it */
  background-color: #fff; /* Background color of the modal */
  padding: 20px; /* Padding around the content */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Slight shadow for better visibility */
  z-index: 1000; /* Ensure it is above other elements */
  border-radius: 8px; /* Rounded corners */
  text-align: center; /* Center the contents inside the modal */
}

#signature-pad,
#signature-content {
  display: block;
  margin: 0 auto 20px auto; /* Center the canvas and add margin below */
  border: 1px solid #000; /* Canvas border */
  width: 100%; /* Ensure the canvas is responsive */
  max-width: 400px; /* Maximum width to keep the size as specified */
  height: auto; /* Maintain the aspect ratio */
}

#button-container {
  display: flex;
  justify-content: center; /* Center buttons horizontally */
  gap: 10px; /* Space between buttons */
  margin-top: 10px; /* Space above the buttons */
}

#clear-signature,
#save-signature,
#close-signature,
.close-modal {
  padding: 10px 20px; /* Padding inside the buttons */
  margin: 5px; /* Space between buttons */
  background-color: #0073aa; /* Button background color */
  color: #fff; /* Button text color */
  border: none; /* Remove default button border */
  border-radius: 4px; /* Rounded corners */
  cursor: pointer; /* Pointer cursor on hover */
  text-align: center; /* Center text inside buttons */
}

#clear-signature:hover,
#save-signature:hover {
  background-color: #005f8d; /* Darker background on hover */
}

body.modal-open {
  overflow: hidden;
}

/* New Issue Form Styles */
.postbox.new-issue-form {
  background-color: #fff;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
  margin-bottom: 20px;
  padding: 15px;
}

.new-issue-form .form-table {
  margin-top: 0;
  width: 100%;
}

.new-issue-form .form-table th {
  width: 200px;
  padding: 15px 10px 15px 0;
  vertical-align: top;
  text-align: left;
}

.new-issue-form .form-table td {
  text-align: left;
}

.new-issue-form textarea {
  width: calc(50% - 10px);
  max-width: 400px;
  min-height: 80px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}

.new-issue-form textarea:last-of-type {
  margin-bottom: 0;
}

.new-issue-form input[type='number'] {
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  padding: 5px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.new-issue-form input[type='checkbox'] {
  margin-right: 5px;
}

.new-issue-form button[type='submit'] {
  margin-top: 15px !important;
  text-align: left;
  float: left;
}

/* Make sure the form takes full width */
.new-issue-form {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.new-issue-form button {
  width: auto;
}

/* Production Issues Table Styles */
.column-issue-affected-orders {
  text-align: center;
  font-weight: bold;
}

.column-issue-affected-orders:not(:empty) {
  background-color: #ffeab2;
}

.column-issue-affected-orders:empty {
  background-color: #e1fdb9;
}

/* Tab Navigation Styles */
.nav-tab-wrapper {
  border-bottom: 1px solid #c3c4c7;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  font-size: 14px;
  margin-bottom: 20px;
}

.nav-tab {
  display: inline-block;
  margin: 0 0 -1px 0;
  padding: 10px 15px;
  border: 1px solid #c3c4c7;
  border-bottom: none;
  text-decoration: none;
  font-weight: 600;
  color: #2c3e50;
  background: #f0f0f1;
  transition: all 0.2s ease;
}

.nav-tab:hover {
  background-color: #fff;
  color: #3498db;
}

.nav-tab-active {
  background-color: #fff;
  color: #3498db;
  border-bottom: 1px solid #fff;
}

.nav-tab-active:hover {
  background-color: #fff;
  color: #3498db;
}

/* Tab Content Styles */
.tab-content {
  background: #fff;
  padding: 20px;
  border: 1px solid #c3c4c7;
  border-top: none;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

/* Production Pause Form Styles */
/* Now using the new-issue-form class for consistent styling */

/* Date input specific styles for the pause form */
.new-issue-form input[type='date'] {
  width: calc(50% - 10px);
  max-width: 195px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
  display: inline-block;
}

.new-issue-form input[type='date']:first-of-type {
  margin-right: 10px;
}

.new-issue-form input[type='date']:last-of-type {
  margin-left: 10px;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  width: 80%;
  max-width: 600px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  position: absolute;
  right: 15px;
  top: 15px;
}

.modal-close:hover,
.modal-close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

.modal h3 {
  margin-top: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.modal select,
.modal input[type='date'] {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 5px 0 15px 0;
  width: 100%;
  max-width: 400px;
}

.modal label {
  font-weight: 600;
  display: inline-block;
  margin-bottom: 5px;
}

.modal ul {
  list-style-type: none;
  padding-left: 0;
}

.modal li {
  margin-bottom: 15px;
}

.modal .text-muted {
  color: #666;
  font-style: italic;
  margin-top: 15px;
  font-size: 12px;
}

.modal button {
  width: auto;
}

/* Styles for the release create form */
#form-release-create {
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #ddd;
  transition: all 0.3s ease;
}

#form-release-create .form-table {
  margin-top: 0;
}

#form-release-create .form-table th {
  width: 200px;
  padding: 15px 10px 15px 0;
  vertical-align: top;
  text-align: left;
  font-weight: 600;
}

#form-release-create .form-table td {
  padding: 10px 10px;
  vertical-align: middle;
}

#form-release-create input[type='text'],
#form-release-create select,
#form-release-create textarea {
  width: 100%;
  max-width: 400px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: border-color 0.2s ease;
}

#form-release-create input[type='text']:focus,
#form-release-create select:focus,
#form-release-create textarea:focus {
  border-color: #2271b1;
  box-shadow: 0 0 0 1px #2271b1;
  outline: none;
}

#form-release-create input[type='checkbox'] {
  margin-right: 8px;
}

#form-release-create button[type='submit'] {
  margin-top: 15px;
  background-color: #2271b1;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

#form-release-create button[type='submit']:hover {
  background-color: #135e96;
}

#form-release-create textarea {
  min-height: 100px;
  resize: vertical;
}

/* Animation for form appearance */
#form-release-create.woocommerce {
  overflow: hidden;
  transition:
    max-height 0.5s ease,
    opacity 0.3s ease,
    transform 0.3s ease;
}

/* Style for the Neuer Eintrag button */
#btn-new-release {
  margin-bottom: 15px;
  transition: background-color 0.2s ease;
}

.edit-shipping-target-wrapper {
  display: flex;
  align-items: center;
}

.edit-shipping-target-wrapper .button-secondary {
  margin: 0 !important;
}

.edit-shipping-target-wrapper.hidden {
  display: none;
}

body.login-page {
  display: block;
  min-width: 0;
  background: #2c3e50;
  min-height: 100vh;
}

.login-card {
  width: 360px;
  max-width: calc(100% - 32px);
  margin: 12vh auto 0;
  background: #fff;
  padding: 28px 32px 32px;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.login-card h1 {
  margin: 0 0 8px;
  text-align: center;
  font-size: 22px;
}

.login-lead {
  text-align: center;
  color: #646970;
  margin: 0 0 20px;
}

.login-card label {
  display: block;
  margin: 12px 0 4px;
  font-weight: bold;
}

.login-card input[type='text'],
.login-card input[type='password'],
.login-card input[type='email'] {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #8c8f94;
  border-radius: 3px;
}

.login-submit {
  width: 100%;
  margin-top: 18px !important;
}

.login-error,
.login-info {
  margin-bottom: 16px;
}

.login-info {
  background: #edfaef;
  border-left: 4px solid #1ba11d;
  padding: 8px 12px;
}

.login-extra {
  text-align: center;
  margin: 16px 0 0;
}

.login-extra a {
  color: #2271b1;
}

.users-page .notice {
  padding: 10px 14px;
  margin: 0 0 16px;
  border-radius: 4px;
}

.users-page .notice p {
  margin: 0;
}

.users-page .notice-error {
  background: #fcf0f1;
  border-left: 4px solid #cf352f;
}

.users-page .notice-success {
  background: #edfaef;
  border-left: 4px solid #1ba11d;
}

.users-create-form {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  padding: 16px 20px 8px;
  margin: 0 0 24px;
  max-width: 720px;
}

.users-create-form h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.users-create-form .form-table {
  width: 100%;
  border-collapse: collapse;
}

.users-create-form .form-table th {
  width: 160px;
  padding: 8px 16px 8px 0;
  text-align: left;
  vertical-align: middle;
  font-weight: 600;
}

.users-create-form .form-table td {
  padding: 8px 0;
}

.users-create-form input[type='text'],
.users-create-form input[type='email'],
.users-create-form input[type='password'],
.users-create-form select {
  width: 100%;
  max-width: 360px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid #c3c4c7;
  border-radius: 4px;
  min-height: 36px;
}

.users-create-actions {
  margin: 8px 0 12px;
}

.users-create-actions .button-primary {
  min-height: 36px;
  padding: 0 16px;
}

.settings-help {
  color: #646970;
  margin: 0 0 12px;
  max-width: 520px;
}

.settings-help code {
  font-size: 12px;
}

.users-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.users-table {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.users-table th,
.users-table td {
  vertical-align: middle;
  white-space: nowrap;
}

.users-table input[type='text'],
.users-table input[type='email'],
.users-table input[type='password'],
.users-table select {
  width: 100%;
  min-width: 140px;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #c3c4c7;
  border-radius: 3px;
  min-height: 32px;
  background: #fff;
}

.users-table input[type='email'] {
  min-width: 200px;
}

.users-table select {
  min-width: 120px;
}

.users-col-username form {
  display: none;
}

.users-you {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 10px;
  background: #2271b1;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.users-table tr.is-current-user {
  background: #f0f6fc;
}

.users-col-active {
  text-align: center;
}

.users-col-login {
  color: #646970;
  font-variant-numeric: tabular-nums;
}

.users-col-actions {
  white-space: nowrap;
}

.users-col-actions .button-secondary,
.users-col-actions .button-danger {
  width: auto;
  display: inline-block !important;
  margin: 0 6px 0 0 !important;
  vertical-align: middle;
}

.users-delete-form {
  display: inline-block;
  margin: 0;
}

.users-delete-form .button-danger {
  width: auto;
  display: inline-block;
  margin: 0 !important;
}

.stock-sku-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 110px;
}

.stock-sku-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.article-guide-open {
  flex-shrink: 0;
  margin: 0 !important;
  padding: 2px 6px !important;
  min-height: 24px !important;
  line-height: 1.2 !important;
}

.article-guide-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.article-guide-overlay.is-open {
  display: flex;
}

.article-guide-dialog {
  position: relative;
  background: #fff;
  width: min(1100px, 96vw);
  height: min(860px, 92vh);
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  padding: 24px 28px 28px;
  box-sizing: border-box;
  overflow: auto;
}

.article-guide-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #555;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  padding: 0 6px;
}

.article-guide-close:hover,
.article-guide-close:focus {
  color: #000;
}

.article-guide-dialog h2 {
  margin: 0 40px 16px 0;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.article-guide-notice {
  margin: 0 0 16px;
}

.article-guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.article-guide-step {
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  padding: 14px;
}

.article-guide-step-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.article-guide-step-title {
  margin: 0;
  font-size: 15px;
}

.article-guide-step img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #eee;
}

.article-guide-step-label {
  display: block;
  font-weight: 600;
  margin: 12px 0 6px;
}

.article-guide-image-actions {
  display: flex;
  gap: 4px;
}

.article-guide-section {
  margin-bottom: 20px;
}

.article-guide-section h3 {
  margin: 0 0 8px;
}

.article-guide-body-text {
  white-space: pre-wrap;
  margin: 10px 0 0;
  line-height: 1.5;
}

.article-guide-textarea {
  width: 100%;
  min-height: 90px;
  box-sizing: border-box;
  padding: 8px;
}

.article-guide-parts {
  width: 100%;
  border-collapse: collapse;
}

.article-guide-parts th,
.article-guide-parts td {
  border-bottom: 1px solid #eee;
  padding: 6px 8px;
  text-align: left;
}

.article-guide-parts input[type='number'] {
  width: 4.5em;
}

.article-guide-parts input[type='text'] {
  width: 100%;
  box-sizing: border-box;
}

.article-guide-empty {
  color: #666;
  font-style: italic;
}

.article-guide-upload {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin: 8px 0 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fafafa;
  padding: 14px;
}

.article-guide-upload .button,
.article-guide-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 16px;
}

.article-guide-upload .button {
  margin: 0;
  align-self: flex-start;
}
