.sob-withdrawal-btn {
  white-space: nowrap;
}

.sob-days-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 12px;
  background: #fffbe6;
  color: #6b5900;
  border: 1px solid #ffdd00;
  margin-left: 4px;
}

.sob-days-badge.sob-days-urgent {
  background: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.sob-detail-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #dee2e6;
}

#sob-new {
  margin-top:30px;
}

#sob-new select.custom-select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'%3E%3Cpath fill='%23333' d='M2 0L0 2h4zm0 5L0 3h4z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
  background-size: 8px 10px !important;
  padding-right: 1.75rem !important;
}

.sob-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 16px;
}
.sob-dl dt {
  color: #6c757d;
  font-weight: 600;
}
.sob-dl dd {
  margin: 0;
}

.sob-log-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sob-log-item {
  padding: 5px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.85rem;
}
.sob-log-date {
  font-family: monospace;
  color: #6c757d;
  font-size: 0.8rem;
  margin-right: 8px;
}

.sob-start-page {
  max-width: 700px;
  margin: 0 auto;
  padding: 0 0 40px;
}

.sob-start-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-top: 4px solid #ffdd00;
  border-radius: 8px;
  padding: 32px 36px;
  margin-bottom: 24px;
}

.sob-start-card--center {
  text-align: center;
}

.sob-start-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #212529;
}

.sob-start-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  background: #ffdd00;
  border-radius: 2px;
  margin-top: 10px;
}

.sob-start-card--center .sob-start-title::after {
  margin-left: auto;
  margin-right: auto;
}

.sob-start-lead {
  color: #6c757d;
  font-size: 0.95rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

.sob-field-label {
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 5px;
  display: block;
}

.sob-start-legal {
  font-size: 0.78rem;
  color: #6c757d;
  margin-top: 20px;
  line-height: 1.5;
}

.sob-login-separator {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 12px;
  margin: 20px 0 14px;
  color: #adb5bd;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sob-login-separator::before,
.sob-login-separator::after {
  content: "";
  -webkit-box-flex: 1;
  flex: 1;
  height: 1px;
  background: #dee2e6;
}

.sob-alert-title {
  margin-top: 0;
  margin-bottom: 8px;
}

.sob-sent-steps {
  display: block;
  margin: 10px 0 0 0;
  padding-left: 20px;
  line-height: 1.6em;
  font-size: 15px;
  padding-bottom: 15px;
}

.sob-guest-header {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-left: 4px solid #ffdd00;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 12px;
}

.sob-guest-header-inner {
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  flex-direction: column;
  gap: 4px;
}

.sob-guest-badge {
  font-weight: 800;
  font-size: 0.9rem;
  color: #1a1a1a;
  background: linear-gradient(transparent 58%, #ffdd00 58%);
  align-self: flex-start;
  padding: 0 3px;
}

.sob-guest-order-meta {
  display: -webkit-box;
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: #495057;
}

.sob-deadline-badge {
  display: -webkit-inline-box;
  display: inline-flex;
  -webkit-box-align: center;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
  background: #fffbe6;
  color: #6b5900;
  border: 1px solid #ffdd00;
  border-radius: 20px;
  padding: 5px 14px;
  white-space: nowrap;
}

.sob-deadline-warn {
  background: #fff8e1;
  color: #b25e00;
  border-color: #ffb300;
}
.sob-deadline-urgent {
  background: #fce4ec;
  color: #c62828;
  border-color: #f5c6cb;
}

.sob-guest-customer {
  font-size: 0.85rem;
  color: #495057;
  margin-bottom: 16px;
}

.sob-product-list {
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.sob-product-item {
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 10px 14px;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 12px;
  background: #fff;
}

.sob-product-item--done {
  background: #f8f9fa;
  opacity: 0.7;
}

.sob-product-thumb {
  width: 52px;
  height: 52px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  background: #f3f4f6;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  overflow: hidden;
}

.sob-product-item-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  display: block;
}

.sob-product-item-info {
  -webkit-box-flex: 1;
  flex: 1;
  min-width: 0;
}

.sob-product-item-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 3px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sob-product-item-meta {
  font-size: 0.78rem;
  color: #6c757d;
  line-height: 1.4;
}

.sob-product-item-controls {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: flex-end;
  align-items: flex-end;
  gap: 10px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.sob-ctrl-group {
  display: -webkit-box;
  display: flex;
  -webkit-box-orient: vertical;
  flex-direction: column;
  gap: 3px;
}

.sob-ctrl-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6c757d;
  white-space: nowrap;
}

.sob-product-item-controls .sob-qty-select {
  width: 72px;
}

.sob-product-item-controls .sob-reason-select {
  width: 190px;
}

.sob-comment-group {
  margin-top: 16px;
}

.sob-textarea {
  font-size: 0.88rem;
}

.sob-legal-block {
  background: #fffdf2;
  border: 1px solid #f0e6b3;
  border-left: 4px solid #ffdd00;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 16px 0;
}

.sob-checkbox-label {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: flex-start;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  line-height: 1.5;
  cursor: pointer;
  margin: 0;
  font-weight: normal;
}

.sob-checkbox {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin-top: 3px;
  width: 16px;
  height: 16px;
}

.sob-btn-submit {
  margin-top: 8px;
}

.sob-success-note {
  display: block;
  -webkit-box-align: center;
  align-items: center;
  background: #fffbe6;
  color: #5c4a00;
  border: 1px solid #ffe27a;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 0.85rem;
  margin-top: 12px;
}

.sob-btn-back {
  display: inline-block;
  margin-top: 16px;
}

.sob-withdrawal-box {
  margin-bottom: 1.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.25rem;
  padding: 15px 20px;
}

.sob-withdrawal-box-header {
  margin-bottom: 0.75rem;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  justify-content: space-between;
}

.sob-withdrawal-days-badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #ffdd00;
  color: #1a1a1a;
  border-radius: 3px;
}

.sob-product-cell {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: flex-start;
  align-items: flex-start;
  gap: 8px;
}

.sob-product-cell-img {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  object-fit: cover;
  border: 1px solid #dee2e6;
  border-radius: 2px;
  margin-top: 2px;
}

.sob-td-vcenter {
  vertical-align: middle;
}

.sob-td--skip select {
  opacity: 0.35;
  pointer-events: none;
}

.sob-qty-select-direct {
  width: 60px;
  margin: 0 auto;
}

col.sob-col-product {
  width: 50%;
}
col.sob-col-qty {
  width: 10%;
}
col.sob-col-reason {
  width: 40%;
}

.sob-consent-text {
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (max-width: 575px) {
  .sob-start-card {
    padding: 20px 18px;
  }
  .sob-product-item {
    flex-wrap: wrap;
  }
  .sob-product-item-controls {
    width: 100%;
  }
  .sob-product-item-controls .sob-reason-select {
    -webkit-box-flex: 1;
    flex: 1;
    width: auto;
  }
}

.sob-btn-block {
  display: block;
  width: 100%;
}
.sob-btn-block + .sob-btn-block {
  margin-top: 0.5rem;
}

.sob-select {
  display: block;
  width: 100%;
  padding: 0.25rem 1.75rem 0.25rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 16px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}
.sob-select:focus {
  border-color: #e6c700;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(255, 221, 0, 0.3);
}
.sob-select:disabled {
  background-color: #e9ecef;
  opacity: 1;
  cursor: not-allowed;
}

.sob-badge-done {
  display: inline-block;
  padding: 0.25em 0.6em;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  border-radius: 0.25rem;
  background-color: #6c757d;
  color: #fff;
}

.sob-start-page .form-group {
  margin-bottom: 1rem;
}
.sob-start-page .form-text {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.875em;
}

.sob-history-table {
  width: 100%;
}
@media (max-width: 767px) {
  .sob-history-table {
    display: none;
  }
}

col.sob-col-check {
  width: 36px;
}

.sob-product-checkbox-col {
  width: 36px;
  text-align: center;
  vertical-align: middle !important;
}

.sob-product-select-cb {
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  cursor: pointer;
  align-self: center;
  margin: 0;
}

.sob-checkbox-spacer {
  display: inline-block;
  width: 18px;
  height: 18px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.sob-item--skip .sob-product-item-controls {
  display: none;
}
.sob-item--skip .sob-row-controls {
  display: none;
}

.sob-row-skip-mark {
  display: none;
  color: #adb5bd;
}
.sob-item--skip .sob-row-skip-mark {
  display: inline;
}

.sob-page .btn-primary,
.sob-modal .btn-primary,
.sob-detail-section .btn-primary,
.sob-withdrawal-btn.btn-primary {
  background: #ffdd00;
  border-color: #ffdd00;
  color: #1a1a1a;
  font-weight: 700;
}
.sob-page .btn-primary:hover,
.sob-page .btn-primary:focus,
.sob-page .btn-primary:active,
.sob-modal .btn-primary:hover,
.sob-modal .btn-primary:focus,
.sob-modal .btn-primary:active,
.sob-detail-section .btn-primary:hover,
.sob-detail-section .btn-primary:focus,
.sob-withdrawal-btn.btn-primary:hover,
.sob-withdrawal-btn.btn-primary:focus {
  background: #f0cf00;
  border-color: #f0cf00;
  color: #1a1a1a;
  box-shadow: 0 0 0 0.2rem rgba(255, 221, 0, 0.35);
}
.sob-page .btn-primary:disabled,
.sob-modal .btn-primary:disabled {
  background: #ffec80;
  border-color: #ffec80;
  color: #6b5900;
}

a.sob-withdrawal-btn.btn-default {
  border: 1px solid #ffdd00;
  background: #fff;
  color: #1a1a1a;
  font-weight: 600;
}
a.sob-withdrawal-btn.btn-default:hover,
a.sob-withdrawal-btn.btn-default:focus {
  background: #ffdd00;
  border-color: #ffdd00;
  color: #1a1a1a;
}

.sob-checkbox,
.sob-product-checkbox,
.sob-product-select-cb {
  accent-color: #d4b500;
}

.sob-modal-content {
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(26, 26, 26, 0.28);
}

.sob-modal-header {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  justify-content: space-between;
  gap: 12px;
  background: #1a1a1a;
  border-bottom: 3px solid #ffdd00;
  padding: 16px 20px;
}

.sob-modal-header-inner {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 14px;
}

.sob-modal-header .modal-title {
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
}

.sob-modal-icon {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffdd00;
  color: #1a1a1a;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.sob-modal-icon .material-icons {
  font-size: 22px;
}

.sob-directive-badge {
  display: inline-block;
  margin-top: 4px;
  background: rgba(255, 221, 0, 0.16);
  color: #ffdd00;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 10px;
}

.sob-close-btn {
  background: transparent;
  border: 0;
  color: #fff;
  opacity: 0.7;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.sob-close-btn:hover,
.sob-close-btn:focus {
  opacity: 1;
  color: #ffdd00;
}

.sob-modal-footer {
  border-top: 1px solid #eee;
}

.sob-loader {
  text-align: center;
  padding: 40px 0;
  color: #6c757d;
}

.sob-spinner {
  display: inline-block;
  width: 34px;
  height: 34px;
  border: 4px solid #fff3b0;
  border-top-color: #ffdd00;
  border-radius: 50%;
  -webkit-animation: sob-spin 0.8s linear infinite;
  animation: sob-spin 0.8s linear infinite;
  vertical-align: middle;
  margin-bottom: 10px;
}
#sob-submit-btn .sob-spinner {
  width: 16px;
  height: 16px;
  border-width: 2px;
  border-color: rgba(26, 26, 26, 0.25);
  border-top-color: #1a1a1a;
  margin: 0 8px 0 0;
}
@-webkit-keyframes sob-spin {
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}
@keyframes sob-spin {
  to { -webkit-transform: rotate(360deg); transform: rotate(360deg); }
}

.sob-info-box {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: flex-start;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 14px;
}
.sob-info-box .material-icons {
  font-size: 20px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}
.sob-info-box--blue {
  background: #fffbe6;
  border: 1px solid #ffe27a;
  color: #1a1a1a;
}
.sob-info-box--blue .material-icons {
  color: #b58900;
}
.sob-info-box--yellow {
  background: #fff4d6;
  border: 1px solid #ffd34d;
  color: #664f00;
}
.sob-info-box--yellow .material-icons {
  color: #b25e00;
}
.sob-info-box--gray {
  background: #f3f4f6;
  border: 1px solid #e0e0e0;
  color: #495057;
}
.sob-info-box--gray .material-icons {
  color: #6c757d;
}

.sob-section-title {
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 14px;
}
.sob-section-title .material-icons {
  background: #ffdd00;
  color: #1a1a1a;
  border-radius: 8px;
  padding: 6px;
  font-size: 20px;
}

.sob-legal-note {
  font-size: 0.78rem;
  color: #8a8a8a;
  margin-top: 10px;
}

.sob-error {
  color: #b02a37;
  font-weight: 600;
  font-size: 0.875rem;
  margin-top: 10px;
}

.sob-success-screen {
  text-align: center;
  padding: 30px 10px;
}
.sob-success-screen::before {
  content: "\2713";
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
  align-items: center;
  -webkit-box-pack: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #ffdd00;
  color: #1a1a1a;
  font-size: 30px;
  font-weight: 700;
  margin: 0 auto 14px;
}
.sob-success-screen h4 {
  color: #1a1a1a;
  font-weight: 700;
  margin-bottom: 8px;
}
.sob-success-screen p {
  color: #6c757d;
  margin-bottom: 4px;
}

.sob-products-table thead th {
  border-bottom: 2px solid #ffdd00;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #495057;
}

.sob-form-section-title {
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid #ffdd00;
  display: block;
}
