/* ===== Base ===== */
.service-wrapper{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:14px;
  color:#1f2937;
  max-width:1100px;
  margin:24px auto;
}
.so-new-wrapper{
  max-width:1300px;
}
.so-admin-wrapper{
  max-width:1300px;
}
.service-wrapper h3, .service-wrapper h4,
.so-modal h3, .so-modal h4{ margin: 0 0 10px; }
.service-wrapper .muted,
.so-modal .muted{ opacity:.75; font-size:12px; color:#6b7280; }
.service-wrapper hr{ margin:20px 0; border:none; border-top:1px solid #e5e5e5; }

.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
@media (max-width: 800px){ .grid-2{ grid-template-columns:1fr; } }

/* ===== Forms ===== */
.service-wrapper label,
.so-modal label,
.so-email-card label{ display:block; font-weight:700; margin:10px 0 6px; color:#374151; letter-spacing:0.01em; font-size:13px; }
.service-wrapper input[type="checkbox"],
.service-wrapper input[type="radio"],
.so-modal input[type="checkbox"],
.so-modal input[type="radio"]{
  width:auto;
}
.so-checkbox{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
}
.service-wrapper input,
.service-wrapper select,
.service-wrapper textarea,
.so-modal input,
.so-modal select,
.so-modal textarea,
.so-email-card input,
.so-email-card textarea{
  width:100%;
  border:1px solid #d1d5db;
  border-radius:10px;
  background:#fff;
  font-size:14px;
  line-height:1.4;
  transition:border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.service-wrapper input:not([type="checkbox"]):not([type="radio"]),
.service-wrapper select,
.so-modal input:not([type="checkbox"]):not([type="radio"]),
.so-modal select,
.so-email-card input:not([type="checkbox"]):not([type="radio"]){
  height:44px;
  padding:0 12px;
}
.service-wrapper textarea,
.so-modal textarea,
.so-email-card textarea{
  padding:12px;
  min-height:90px;
}
.service-wrapper select,
.so-modal select{ line-height:44px; }
.service-wrapper input:focus,
.service-wrapper select:focus,
.service-wrapper textarea:focus,
.so-modal input:focus,
.so-modal select:focus,
.so-modal textarea:focus{
  border-color:#2563eb;
  box-shadow:0 6px 18px rgba(37,99,235,0.06);
  outline:none;
}
.service-wrapper button,
.service-wrapper .btn-primary,
.so-modal .btn-primary{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:none;
  border-radius:10px;
  height:44px;
  padding:0 16px;
  cursor:pointer;
  background:#29abe2;
  color:#fff;
  font-weight:700;
  margin-top:10px;
  text-decoration:none;
}
.service-wrapper button:hover,
.service-wrapper .btn-primary:hover,
.so-modal .btn-primary:hover{ background:#1f93c5; color:#fff; }
.service-wrapper .btn-success{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:none;
  border-radius:10px;
  height:44px;
  padding:0 16px;
  cursor:pointer;
  background:#16a34a;
  color:#fff;
  font-weight:700;
  text-decoration:none;
}
.service-wrapper .btn-success:hover{ background:#15803d; color:#fff; }
.btn-secondary{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-left:10px;
  height:44px;
  padding:0 14px;
  border-radius:10px;
  border:1px solid #d1d5db;
  text-decoration:none;
  color:#111827;
  background:#f3f4f6;
  font-weight:700;
}
.btn-secondary:hover{ background:#e5e7eb; }

/* ===== Compact new order form ===== */
.so-new-card{
  background:linear-gradient(180deg, #f7f9fc 0%, #ffffff 55%);
  border:1px solid #e6e9f2;
  border-radius:18px;
  padding:18px;
  box-shadow:0 14px 30px rgba(15, 23, 42, 0.06);
}
.so-new-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}
@media (max-width: 980px){
  .so-new-grid{
    grid-template-columns:1fr;
  }
}
.so-admin-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
@media (max-width: 980px){
  .so-admin-grid{
    grid-template-columns:1fr;
  }
}
.so-new-card h3{
  font-size:18px;
  letter-spacing:0.01em;
}
.so-form-intro{
  margin:4px 0 14px;
  color:#475569;
  font-size:13px;
}
.so-section{
  display:flex;
  align-items:center;
  gap:10px;
  margin:16px 0 6px;
}
.so-section::after{
  content:"";
  flex:1;
  height:1px;
  background:linear-gradient(90deg, rgba(148,163,184,0.45), rgba(148,163,184,0.08));
}
.so-section h4{
  margin:0;
  font-size:12.5px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#64748b;
}
.so-disclosure{
  margin:8px 0 2px;
  border:1px solid #e3e7ef;
  border-radius:12px;
  background:#fff;
  box-shadow:0 8px 16px rgba(15, 23, 42, 0.04);
}
.so-disclosure > summary{
  list-style:none;
  cursor:pointer;
  padding:10px 12px;
  font-weight:700;
  color:#1f2937;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.so-disclosure > summary::-webkit-details-marker{ display:none; }
.so-disclosure > summary::after{
  content:"+";
  font-size:16px;
  color:#64748b;
}
.so-disclosure[open] > summary::after{ content:"–"; }
.so-disclosure > .card{
  border:none;
  box-shadow:none;
  background:transparent;
  padding:12px;
}
.so-quote-options{
  display:grid;
  gap:8px;
  margin-top:6px;
}
.so-quote-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
}
.so-quote-status{
  margin-top:8px;
  padding:8px 10px;
  border-radius:10px;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  font-weight:700;
}
.so-quote-status.is-approved{ color:#15803d; }
.so-quote-status.is-declined{ color:#b91c1c; }
.so-inspection-fee{
  display:none;
}
.so-warranty-pricing{
  display:block;
}
.so-work-panel.is-warranty .so-warranty-pricing{
  display:none;
}
.so-work-panel.is-warranty.is-warranty-declined .so-warranty-pricing{
  display:block;
}
.so-warranty-note{
  padding:8px 10px;
  border-radius:10px;
  background:#f3f4f6;
  border:1px solid #e5e7eb;
  font-weight:700;
  margin-bottom:8px;
}
.so-success-button{
  background:#16a34a;
}
.so-success-button:hover{ background:#15803d; }
.so-quote-pill{
  text-transform:uppercase;
  letter-spacing:0.06em;
  font-size:12px;
}
.so-work-panel.is-approved,
.so-work-panel.is-declined{
  background:#f3f4f6;
  border-color:#e5e7eb;
}
.so-work-panel.is-locked input:not([type="hidden"]),
.so-work-panel.is-locked textarea{
  background:#f3f4f6;
  color:#6b7280;
  cursor:not-allowed;
}
.so-work-panel.is-locked .js-price-reset{
  opacity:0.6;
  cursor:not-allowed;
}
.so-clearletter-open:disabled{
  opacity:0.6;
  cursor:not-allowed;
}
.so-price-status{
  margin-bottom:10px;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#f3f4f6;
  font-weight:700;
}
.so-price-status.is-approved{ color:#15803d; }
.so-price-status.is-declined{ color:#b91c1c; }
.so-price-status .so-quote-ack{
  margin-top:6px;
}
.so-price-status .so-quote-ack .btn-secondary{
  margin-left:0;
}
.so-quote-ack-link{
  display:inline-flex;
  margin-left:8px;
  font-weight:700;
  color:#1d4ed8;
  text-decoration:underline;
}
.so-quote-ack-link:hover{ color:#1e40af; }
.so-radio{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 10px;
  border:1px solid #e6ebf4;
  border-radius:10px;
  background:#f8fafc;
  font-weight:600;
  color:#1f2937;
}
.so-radio input{
  width:16px;
  height:16px;
  margin:0;
}
.so-compact-form label{
  margin:6px 0 4px;
  font-weight:600;
  font-size:12.5px;
}
.so-compact-form input,
.so-compact-form select,
.so-compact-form textarea{
  border-color:#d1d5db;
  background:#ffffff;
}
.so-compact-form select{
  line-height:44px;
}
.so-compact-form textarea{ min-height: 90px; }
.so-compact-form .grid-2{ gap:10px; }
.so-compact-form .card{
  padding:12px;
  border-radius:12px;
  border-color:#e3e7ef;
  box-shadow:0 10px 18px rgba(15, 23, 42, 0.04);
}
.so-compact-form .card h4{
  font-size:13px;
  margin-bottom:8px;
}
.so-form-actions{
  display:flex;
  justify-content:flex-end;
  padding-top:6px;
}
.so-compact-form button{
  height:44px;
  padding:0 18px;
  border-radius:10px;
  box-shadow:none;
}

/* ===== Notices ===== */
.so-notice{
  padding:10px 12px;
  border-radius:10px;
  margin: 0 0 14px;
  font-size:13px;
}
.so-success{ background:#e7f6ed; border-left:4px solid #27ae60; }
.so-error{ background:#fdecea; border-left:4px solid #e74c3c; }

/* ===== Tables ===== */
.service-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:12px;
  overflow:hidden;
}
.service-table th{
  background:#f4f6f8;
  text-align:left;
  padding:10px 12px;
  font-weight:800;
  border-bottom:1px solid #e6e6e6;
}
.service-table td{
  padding:10px 12px;
  border-bottom:1px solid #f0f0f0;
}
.service-table tr:hover td{ background:#f9fafb; }
.td-actions{ white-space:nowrap; }
.sep{ opacity:.5; padding:0 6px; }

.service-wrapper a,
.so-modal a{ color:#2563eb; text-decoration:none; }
.service-wrapper a:hover,
.so-modal a:hover{ text-decoration:underline; }

/* ===== Status colors ===== */
.status-Mottagen{ color:#0a7bdc; font-weight:800; }
.status-På-verkstad{ color:#f39c12; font-weight:800; }
.status-Tillbaka-i-butik{ color:#8e44ad; font-weight:800; }
.status-Klar-i-butik{ color:#27ae60; font-weight:800; }
.status-Utlämnad{ color:#7f8c8d; font-weight:800; }

.pill{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:#f4f6f8;
  font-weight:800;
}

/* ===== Detail ===== */
.service-detail .detail-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.detail-actions{ display:flex; gap:10px; }
.print-button{
  display:inline-block;
  background:#0070c9;
  color:#fff !important;
  padding:10px 12px;
  border-radius:10px;
  text-decoration:none;
  font-weight:800;
}
.print-button:hover{ background:#005ba5; color:#fff !important; }
.print-split{ display:flex; gap:6px; }

.card{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:14px;
  padding:14px;
  box-shadow:0 8px 20px rgba(0,0,0,0.04);
}
.box{
  background:#f8f9fa;
  border:1px solid #ececec;
  border-radius:12px;
  padding:12px;
}

/* ===== Search ===== */
.service-search-form{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin: 10px 0 14px;
}
.service-search-form input{ max-width:360px; }
.service-search-form select{ max-width:240px; }
.so-header-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.so-supersok{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:center;
  margin:0 auto;
  width:100%;
}
.service-dashboard .so-supersok{
  justify-content:flex-end;
  width:100%;
}
.service-dashboard .so-supersok input{
  flex:1;
  width:auto;
  min-width:200px;
}
.so-supersok-toggle{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:12px;
  font-weight:600;
  color:#475569;
}
.so-supersok-toggle input{
  width:16px;
  height:16px;
  margin:0;
}
.so-supersok input{
  width:440px;
  max-width:100%;
}
@media (max-width: 640px){
  .so-supersok input{
    width:100%;
  }
}

/* ===== Logs & comments ===== */
.service-log, .service-comments{
  list-style:none;
  padding:0;
  margin:0;
}
.service-log li, .service-comments li{
  background:#f8f9fa;
  border:1px solid #ececec;
  border-left:4px solid #0073aa;
  border-radius:12px;
  padding:10px 12px;
  margin: 0 0 10px;
  font-size:13px;
}

/* ===== Dashboard ===== */
.dash-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px;
}
.dash-header .dash-actions{
  flex:1;
  display:flex;
}
.status-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap:12px;
  margin-bottom: 14px;
}
.status-card{
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:14px;
  padding:14px;
  text-align:center;
  text-decoration:none;
  color:#1e1e1e;
}
.status-card:hover{ background:#f4f6f8; }
.status-card.active{
  border-color:#c7d2fe;
  background:#eef2ff;
}
.status-card .count{ display:block; font-size:28px; font-weight:900; }
.status-card .label{ display:block; margin-top:6px; font-size:13px; }

.bullets{ margin:0; padding-left:18px; }
.bullets li{ margin: 6px 0; }

/* ===== Login prompt ===== */
.so-login-wrapper{ max-width:560px; margin:0 auto; }
.so-login-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:18px;
  padding:22px;
  box-shadow:0 12px 30px rgba(15, 23, 42, 0.08);
}
.so-login-notice{
  background:#fef4e8;
  color:#8a5a10;
  border-radius:10px;
  padding:12px 14px;
  border:1px solid #f8e3c4;
  margin-bottom:16px;
  font-weight:600;
}
.so-login-error{
  background:#fee2e2;
  color:#991b1b;
  border-radius:10px;
  padding:10px 12px;
  border:1px solid #fecaca;
  margin:-6px 0 14px;
  font-weight:600;
}
.so-login-form label{
  display:block;
  margin:10px 0 6px;
  font-weight:700;
  color:#111827;
}
.so-login-form input[type="text"],
.so-login-form input[type="password"],
.so-login-form input[type="email"]{
  width:100%;
  border:1px solid #d1d5db;
  border-radius:10px;
  padding:10px 12px;
  font-size:14px;
  background:#fff;
}
.so-login-form input:focus{
  outline:none;
  border-color:#94a3b8;
  box-shadow:0 0 0 3px rgba(148, 163, 184, 0.25);
}
.so-login-form button,
.so-login-cta{
  width:100%;
  margin-top:14px;
  border-radius:999px;
  padding:12px 18px;
  font-weight:700;
  letter-spacing:0.02em;
  text-transform:uppercase;
  background:#1f2937;
  color:#fff;
  border:none;
}
.so-login-form button:hover,
.so-login-cta:hover{
  background:#111827;
}
.so-login-cta{
  display:block;
  text-align:center;
  text-decoration:none;
}
.so-quote-locked{
  opacity:0.6;
}
.so-quote-locked input[type="radio"]:disabled{
  cursor:not-allowed;
}
.so-quote-locked-note{
  display:none;
}
.so-quote-locked .so-quote-locked-note{
  display:block;
}
.so-effective-user{
  background:#eef2ff;
  color:#1e3a8a;
  border:1px solid #c7d2fe;
  border-radius:10px;
  padding:8px 12px;
  font-weight:600;
  margin:0 0 12px;
}
.so-login-select select{
  appearance:none;
  background-image:linear-gradient(45deg, transparent 50%, #666 50%), linear-gradient(135deg, #666 50%, transparent 50%);
  background-position:calc(100% - 22px) calc(50% + 2px), calc(100% - 16px) calc(50% + 2px);
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
}
.so-login-form p.muted{ margin:6px 0 14px; color:#6b7280; }
.so-remember{
  display:flex;
  align-items:center;
  gap:8px;
  font-weight:600;
  margin:6px 0 10px;
}

/* ===== Modal ===== */
.so-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.45);
  z-index:2147483000;
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
}
.so-modal-overlay.open{ display:flex; }
.so-modal{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:14px;
  color:#1f2937;
  background:#fff;
  border:1px solid #e6e6e6;
  border-radius:14px;
  max-width:1100px;
  width:min(1100px, 100%);
  max-height:90vh;
  overflow:auto;
  padding:20px;
  box-shadow:0 16px 32px rgba(15, 23, 42, 0.18);
  position:relative;
}
.so-open-full{
  white-space:nowrap;
}
.so-modal-statusbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.so-modal-statusbar-left{
  display:flex;
  flex-direction:column;
  gap:2px;
}
.so-modal-quick{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.so-modal-quick-grid{
  display:grid;
  grid-template-columns: 2fr 1fr;
  gap:12px;
}
.so-modal-left-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}
.so-modal-strong{
  font-weight:800;
  font-size:14px;
  margin-top:2px;
}
.so-modal-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:4px;
}
.so-modal-status-form{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.so-modal-footer{
  display:flex;
  justify-content:flex-end;
  margin-top:10px;
}
@media (max-width: 640px){
  .so-modal-quick-grid{
    grid-template-columns:1fr;
  }
  .so-modal-left-grid{
    grid-template-columns:1fr;
  }
  .so-modal-statusbar{
    flex-direction:column;
    align-items:flex-start;
  }
}
.so-modal-close{
  position:absolute;
  top:10px;
  right:12px;
  border:none;
  background:#e5e7eb;
  border-radius:999px;
  width:32px;
  height:32px;
  font-size:20px;
  font-weight:700;
  cursor:pointer;
  color:#374151;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.so-modal-close:hover{ background:#d1d5db; }
.so-modal-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.so-danger-button{
  background:#c0392b !important;
  color:#fff;
}
.so-manual-notify{
  background:#f59e0b;
  border-color:#f59e0b;
  color:#1f2937;
}
.so-manual-notify:hover{
  background:#d97706;
  border-color:#d97706;
  color:#111827;
}
.so-summary-card .so-summary-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.so-summary-head-title{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}
.so-type-badge{
  display:inline-flex;
  align-items:center;
  height:24px;
  padding:0 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.06em;
  text-transform:none;
  color:#1f2937;
  background:#e2e8f0;
}
.so-type-badge.is-service{
  color:#0f172a;
  background:linear-gradient(135deg, #dbeafe, #bfdbfe);
  border:1px solid #93c5fd;
}
.so-type-badge.is-warranty{
  color:#1f2937;
  background:linear-gradient(135deg, #fde68a, #fcd34d);
  border:1px solid #f59e0b;
}
.so-type-badge.is-store{
  color:#1f2937;
  background:linear-gradient(135deg, #e2e8f0, #cbd5f5);
  border:1px solid #94a3b8;
}
.so-type-badge.is-fee-paid{
  color:#065f46;
  background:linear-gradient(135deg, #bbf7d0, #86efac);
  border:1px solid #22c55e;
}
.so-mini-dashboard .so-mini-card{
  padding:16px;
  max-height:450px;
  overflow:auto;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.so-mini-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:10px;
}
.so-mini-notices{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:12px;
}
.so-mini-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  text-decoration:none;
}
.so-mini-pill.is-warning{
  background:#fef3c7;
  color:#92400e;
  border:1px solid #f59e0b;
}
.so-mini-pill.is-danger{
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #ef4444;
}
.so-mini-pill.is-ok{
  background:#e2e8f0;
  color:#1f2937;
  border:1px solid #cbd5f5;
}
.so-mini-title{
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.08em;
  color:#64748b;
  margin:0 0 6px;
}
.so-mini-table{
  font-size:13px;
}
.so-work-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.so-work-head h4{
  margin:0;
}
.so-detail-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin: 6px 0 10px;
}
.so-detail-top-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.so-backrep-inline{
  margin-top:8px;
}
.so-status-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.so-status-bar select{
  max-width:240px;
}
.so-status-card{
  margin-bottom:12px;
}
.so-summary-title{
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#64748b;
  margin-bottom:6px;
  font-weight:700;
}
.so-summary-grid .box{ margin-top:6px; }
.so-detail-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin:10px 0 12px;
}
.so-action-links{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.so-inline-form{ margin:0; }
.service-detail .so-edit-panel{ display:none; }
.service-detail.is-editing .so-edit-panel{ display:block; }
.so-print-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.4);
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:2147483000;
}
.so-print-modal.open{ display:flex; }
.so-print-card{
  background:#fff;
  border-radius:14px;
  padding:16px;
  width:min(360px, 100%);
  border:1px solid #e6e6e6;
  box-shadow:0 16px 32px rgba(0,0,0,0.18);
}
.so-print-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:4px;
}
.so-print-close{
  border:none;
  background:#e5e7eb;
  border-radius:999px;
  width:34px;
  height:34px;
  font-size:20px;
  font-weight:700;
  cursor:pointer;
  color:#374151;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.so-print-close:hover{ background:#d1d5db; }
.so-print-options{
  display:grid;
  gap:8px;
  margin:10px 0 6px;
}
.so-print-option{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  font-weight:700;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#f8fafc;
}
.so-print-option input{
  width:16px;
  height:16px;
  margin:0;
}
.so-print-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:10px;
}
.so-email-modal{
  position:fixed;
  inset:0;
  background:rgba(15, 23, 42, 0.45);
  display:none;
  align-items:center;
  justify-content:center;
  padding:16px;
  z-index:2147483000;
}
.so-email-modal.open{ display:flex; }
.so-email-card{
  background:#fff;
  border-radius:14px;
  padding:16px;
  width:min(560px, 100%);
  border:1px solid #e6e6e6;
  box-shadow:0 16px 32px rgba(0,0,0,0.18);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:14px;
  color:#1f2937;
}
.so-email-card textarea{
  min-height:180px;
}
.so-email-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}
.so-email-close{
  border:none;
  background:#e5e7eb;
  border-radius:999px;
  width:34px;
  height:34px;
  font-size:20px;
  font-weight:700;
  cursor:pointer;
  color:#374151;
  display:flex;
  align-items:center;
  justify-content:center;
  line-height:1;
}
.so-email-close:hover{ background:#d1d5db; }
.so-email-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:10px;
}
.so-work-panel .js-price-reset{
  margin-top:8px;
}
.so-price-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:8px;
  justify-content:center;
}
.so-photo-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:6px;
}
.so-new-form .is-error input[type="file"],
.so-new-form .is-error input[type="checkbox"]{
  outline:2px solid #dc2626;
  outline-offset:2px;
}
.so-new-form .is-error{
  color:#dc2626;
}
.so-thumb-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:64px;
  height:64px;
  border-radius:12px;
  border:1px solid #e5e7eb;
  background:#f8fafc;
  overflow:hidden;
}
.so-thumb-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.so-thumb-file{
  font-weight:700;
  font-size:12px;
  color:#374151;
}
.so-file-center{
  display:flex;
  justify-content:center;
}
.so-lightbox{
  position:fixed;
  inset:0;
  background:rgba(15, 23, 42, 0.65);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  z-index:2147483000;
}
.so-lightbox img{
  max-width:min(900px, 90vw);
  max-height:80vh;
  border-radius:14px;
  box-shadow:0 20px 50px rgba(0,0,0,0.35);
}
.so-lightbox-caption{
  color:#fff;
  font-weight:600;
  margin-top:10px;
  text-align:center;
}
.so-lightbox-close{
  position:absolute;
  top:16px;
  right:18px;
  border:none;
  background:rgba(255,255,255,0.9);
  border-radius:999px;
  width:36px;
  height:36px;
  font-size:22px;
  cursor:pointer;
}
.so-lightbox-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  border:none;
  background:rgba(255,255,255,0.9);
  border-radius:999px;
  width:40px;
  height:40px;
  font-size:20px;
  cursor:pointer;
}
.so-lightbox-nav.prev{ left:16px; }
.so-lightbox-nav.next{ right:16px; }
.so-lightbox-nav:disabled{
  opacity:0.4;
  cursor:default;
}
@media (max-width: 640px){
  .so-detail-top{
    flex-direction:column;
    align-items:flex-start;
  }
  .so-status-bar{
    flex-direction:column;
    align-items:flex-start;
  }
  .so-status-bar select{
    max-width:100%;
  }
}
.so-stale-notice{
  background:#fff6e5;
  border:1px solid #f5d7a7;
  border-radius:12px;
  padding:12px 14px;
  margin-bottom:12px;
  color:#8a5a10;
  font-weight:700;
}
.so-modal-edit-form{ display:none; }
.so-modal.edit-mode .so-modal-edit-form{ display:block; }
.so-modal.edit-mode .so-modal-view{ display:none; }
.service-filter-form{
  margin-bottom:12px;
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:12px;
  align-items:end;
}
.service-filter-form select,
.service-filter-form input{
  min-width:0;
}
.service-filter-form button,
.service-filter-form .btn-secondary{
  margin-top:0;
  width:100%;
  justify-content:center;
}
.so-filter-actions{
  display:flex;
  gap:10px;
}
.so-filter-actions button,
.so-filter-actions .btn-success{
  flex:1 1 0;
  width:auto;
}
