/* سند الشرق — بوابة العملاء: تنسيق مشترك */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #F7F5F1;
  color: #10233D;
  font-family: Tajawal, "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
}
h1, h2, h3, p, ul, li, dl, dd, dt, form { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: #B4873C; text-decoration: none; }
a:hover { color: #8E6828; }
[hidden] { display: none !important; }

.sa-portal-bar {
  display: flex; align-items: center; gap: 20px;
  max-width: 1040px; margin: 0 auto; padding: 16px 20px;
}
.sa-portal-brand { font-size: 20px; font-weight: 800; color: #0B1F3A; }
.sa-portal-links { display: flex; flex-wrap: wrap; gap: 4px; flex: 1; }
.sa-nav-link {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: #4B5A70;
}
.sa-nav-link:hover { background: #EFE8DA; color: #0B1F3A; }
.sa-nav-link.is-active { background: #0B1F3A; color: #fff; }
.sa-portal-user { flex-shrink: 0; }

.sa-portal-header {
  border-bottom: 1px solid #E7E1D4; background: #FFFFFF;
}

.sa-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 10px; border: none;
  background: #B4873C; color: #fff; font-family: inherit; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: background .15s ease;
}
.sa-btn:hover { background: #8E6828; }
.sa-btn:disabled { opacity: .6; cursor: default; }
.sa-btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 10px; border: 1.5px solid #0B1F3A;
  background: #fff; color: #0B1F3A; font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.sa-btn-outline:hover { background: #F1EEE7; }
.sa-btn-ghost {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid #D8D1C2; background: #fff; color: #0B1F3A; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.sa-btn-ghost:hover { background: #F1EEE7; }

.sa-wrap { max-width: 1040px; margin: 0 auto; padding: 28px 20px 80px; }
.sa-wrap-narrow { max-width: 460px; margin: 0 auto; padding: 60px 20px 80px; }

.sa-card {
  background: #fff; border: 1px solid #E7E1D4; border-radius: 16px; padding: 24px;
}
.sa-card + .sa-card { margin-top: 20px; }
.sa-card h2 { font-size: 18px; font-weight: 800; color: #0B1F3A; margin-bottom: 4px; }
.sa-card .sa-sub { font-size: 13.5px; color: #6B7688; margin-bottom: 18px; }

.sa-field { display: block; margin-bottom: 16px; }
.sa-field span { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: #33445C; }
.sa-field input, .sa-field select, .sa-field textarea {
  width: 100%; height: 46px; border-radius: 10px; border: 1.5px solid #D8D1C2; background: #FCFBF8;
  padding: 0 14px; font-family: inherit; font-size: 15px; color: #10233D;
}
.sa-field textarea { height: auto; padding: 12px 14px; min-height: 96px; resize: vertical; }
.sa-field input:focus, .sa-field select:focus, .sa-field textarea:focus {
  outline: none; border-color: #B4873C; background: #fff;
}
.sa-hint { font-size: 12.5px; color: #8B93A3; margin-top: -10px; margin-bottom: 16px; }

.sa-row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.sa-tabs { display: flex; gap: 8px; margin-bottom: 22px; }
.sa-tab {
  flex: 1; text-align: center; padding: 10px; border-radius: 10px; font-weight: 700; font-size: 14px;
  border: 1.5px solid #D8D1C2; background: #fff; color: #4B5A70; cursor: pointer;
}
.sa-tab.is-active { background: #0B1F3A; border-color: #0B1F3A; color: #fff; }

.sa-msg { border-radius: 10px; padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.sa-msg.err { background: #FBEAE6; color: #A8351F; }
.sa-msg.ok { background: #E7F5EC; color: #1F7A47; }

.sa-divider { display: flex; align-items: center; gap: 12px; color: #A9AFB9; font-size: 13px; margin: 18px 0; }
.sa-divider::before, .sa-divider::after { content: ""; flex: 1; height: 1px; background: #E7E1D4; }

.sa-service-pick { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 20px; }
.sa-service-pick label {
  display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px;
  border: 1.5px solid #D8D1C2; background: #fff; cursor: pointer; font-weight: 700; font-size: 14.5px;
}
.sa-service-pick input { accent-color: #B4873C; }
.sa-service-pick label.is-active { border-color: #B4873C; background: #FBF6EC; }

table.sa-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.sa-table th { text-align: right; padding: 10px 12px; font-size: 12.5px; color: #8B93A3; border-bottom: 1px solid #E7E1D4; }
table.sa-table td { padding: 12px; border-bottom: 1px solid #F0ECE1; }
table.sa-table tr:last-child td { border-bottom: none; }
table.sa-table tr.is-clickable { cursor: pointer; }
table.sa-table tr.is-clickable:hover { background: #FAF8F3; }

.sa-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 700; }
.sa-badge.gray { background: #EEEEEE; color: #5A6472; }
.sa-badge.warn { background: #FDF1DC; color: #96650B; }
.sa-badge.brand { background: #EAEFF7; color: #1E3A66; }
.sa-badge.ok { background: #E7F5EC; color: #1F7A47; }
.sa-badge.err { background: #FBEAE6; color: #A8351F; }

.sa-empty { text-align: center; padding: 60px 20px; color: #8B93A3; }
.sa-empty p:first-child { font-size: 15px; font-weight: 700; color: #4B5A70; }

.sa-timeline { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.sa-timeline li { display: flex; gap: 12px; align-items: flex-start; }
.sa-timeline .dot { width: 9px; height: 9px; border-radius: 50%; background: #B4873C; margin-top: 6px; flex-shrink: 0; }
.sa-timeline p { font-weight: 700; font-size: 14.5px; }
.sa-timeline .note { color: #6B7688; font-size: 13px; margin-top: 2px; }
.sa-timeline .when { color: #A9AFB9; font-size: 12px; margin-top: 2px; }

.sa-quote-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .sa-portal-bar { flex-wrap: wrap; }
  .sa-portal-links { order: 3; width: 100%; justify-content: flex-start; }
}
