/* ============================================================================
   AppleCare Warranty Sync — additions on top of apple.css
   Method tabs, results pills/table, dropzone, spinner.
   ============================================================================ */

/* Sub-nav action links keep their pill colors (matches portal.css fix) */
a.ap-btn { text-decoration: none; }
a.ap-btn:hover { text-decoration: none; }
.ap-sub-nav .ap-subnav-actions a.ap-btn-primary,
.ap-sub-nav .ap-subnav-actions a.ap-btn-primary:visited,
.ap-sub-nav .ap-subnav-actions a.ap-btn-primary:hover { color: var(--ap-on-dark) !important; }

/* Hero logo mark */
.ap-hero .ap-hcs-mark { border-radius: 14px; }

/* Feature checks under the hero tagline */
.sync-checks {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.sync-checks span {
  font-family: var(--ap-text);
  font-size: 14px;
  letter-spacing: -0.016em;
  color: var(--ap-ink-48);
}
.sync-checks .tick { color: var(--ap-primary); margin-right: 6px; }

/* Inline connection-test status next to Test buttons */
.inline-status {
  font-family: var(--ap-text);
  font-size: 13px;
  letter-spacing: -0.01em;
  align-self: center;
}
.inline-status.ok { color: #1f7a3f; }
.inline-status.err { color: #b3261e; }
.inline-status.busy { color: var(--ap-ink-48); }
[data-theme="dark"] .inline-status.ok { color: #6dd884; }
[data-theme="dark"] .inline-status.err { color: #ff9c9c; }

.btn-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Upload dropzone (pem / csv) */
.dropzone {
  border: 1.5px dashed var(--ap-hairline);
  border-radius: var(--ap-r-lg);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  color: var(--ap-ink-48);
  font-family: var(--ap-text);
  font-size: 14px;
  letter-spacing: -0.016em;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.dropzone:hover { color: var(--ap-primary); border-color: var(--ap-primary); }
.dropzone input { display: none; }
.dropzone.compact { padding: 14px; }
.dropzone .ok { color: var(--ap-primary); }

/* Results summary pills (qp-pill grammar from the quarterly portal) */
.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--ap-r-pill);
  font-family: var(--ap-text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.sync-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.sync-pill-ok   { background: #e3f5e7; color: #1d6b2c; }
.sync-pill-warn { background: #fff5d6; color: #8a5a00; }
.sync-pill-err  { background: #fde0e0; color: #a80000; }
.sync-pill-idle { background: #efeff1; color: #6e6e73; }
[data-theme="dark"] .sync-pill-ok   { background: #1f3a26; color: #6dd884; }
[data-theme="dark"] .sync-pill-warn { background: #3d2f10; color: #ffd770; }
[data-theme="dark"] .sync-pill-err  { background: #3d1414; color: #ff9c9c; }
[data-theme="dark"] .sync-pill-idle { background: #2a2a2c; color: #a1a1a6; }

/* Results table — hairline rows, no chrome */
.sync-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--ap-text);
  font-size: 13.5px;
  letter-spacing: -0.01em;
}
.sync-table th {
  text-align: left;
  padding: 10px 8px;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ap-ink-48);
  border-bottom: 1px solid var(--ap-hairline);
}
.sync-table td {
  padding: 12px 8px;
  border-bottom: 1px solid var(--ap-hairline);
  color: var(--ap-ink);
}
.sync-table tr:last-child td { border-bottom: none; }

.results-header {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Loading spinner */
.loading {
  display: none;
  text-align: center;
  padding: 48px 0;
  font-family: var(--ap-text);
  font-size: 14px;
  color: var(--ap-ink-48);
}
.loading.show { display: block; }
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--ap-hairline);
  border-top-color: var(--ap-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 14px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Login */
.login-tile {
  min-height: calc(100vh - 44px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}
.login-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 480px;
}
.login-hero .ms-logo { width: 18px; height: 18px; }
.login-fine {
  font-family: var(--ap-text);
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--ap-ink-48);
  margin-top: 24px;
}
