:root {
  --brand: #a0005a; --brand-dark: #70003f; --brand-light: #c0006e;
  --gold: #bd944e; --ink: #18122b; --muted: #7c6e8f; --line: #e8e0ee;
  --surface: #fff; --canvas: #f5f3f7; --soft: #f7e8f1; --warning-bg: #fff4d8;
  --shadow: 0 2px 16px rgba(112, 0, 63, .08); --number-font: "Museo700", "Museo 700", "Segoe UI", sans-serif;
}
@font-face { font-family: "Museo700"; src: url("fonts/Museo700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "MuseoDigits"; src: url("fonts/Museo700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0030-0039; }
@font-face { font-family: "MuseoLatin"; src: url("fonts/Museo700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; unicode-range: U+0000-024F; }
@font-face { font-family: "GE SS Two"; src: url("GE_SS_Two_Light.otf") format("opentype"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "GE SS Two"; src: url("GE_SS_Two_Medium.otf") format("opentype"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "GE SS Two"; src: url("GE-SS-Two-Bold.otf") format("opentype"); font-weight: 700 900; font-style: normal; font-display: swap; }
* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; background: linear-gradient(180deg, rgba(160,0,90,.05), transparent 300px), var(--canvas); color: var(--ink); font: 13px "GE SS Two", Cairo, Tahoma, Arial, sans-serif; }
button, select { font: inherit; }
.app-shell { width: min(1360px, calc(100% - 36px)); margin: 0 auto; padding: 26px 0 48px; }
.site-header { min-height: 152px; display: flex; align-items: center; gap: 32px; padding: 26px 30px; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; color: #fff; background: linear-gradient(135deg, rgba(112,0,63,.98), rgba(160,0,90,.96) 58%, rgba(192,0,110,.88)); box-shadow: 0 8px 34px rgba(112,0,63,.16); }
.brand { display: flex; align-items: center; gap: 13px; padding-left: 30px; border-left: 1px solid rgba(255,255,255,.24); }.brand-mark { width: 112px; height: 58px; display: grid; place-items: center; overflow: hidden; }.brand-mark img { width: 100%; height: 100%; object-fit: contain; }.brand strong, .brand span { display: block; }.brand strong { font-size: 17px; }.brand div span { margin-top: 4px; color: rgba(255,255,255,.74); font-size: 10px; white-space: nowrap; }
.header-copy { flex: 1; }.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .03em; }.header-copy h1 { margin: 0; font-size: clamp(25px,4vw,39px); line-height: 1.25; }.header-copy > p:last-child { margin: 8px 0 0; color: rgba(255,255,255,.78); font-size: 12px; }.print-button, .secondary-button { border-radius: 12px; cursor: pointer; font-weight: 800; transition: .18s ease; }.print-button { padding: 12px 17px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.14); color: #fff; white-space: nowrap; }.print-button:hover { background: #fff; color: var(--brand); }
.summary-card { display: grid; grid-template-columns: 1.4fr repeat(4,1fr); overflow: hidden; margin: 20px 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }.summary-label, .summary-item { min-height: 92px; display: flex; flex-direction: column; justify-content: center; padding: 18px 22px; border-left: 1px solid var(--line); }.summary-label span, .summary-item span { color: var(--muted); font-size: 11px; font-weight: 700; }.summary-label small { margin-top: 6px; color: var(--brand); font-size: 9px; }.summary-item strong { margin-top: 7px; color: var(--brand); font-size: 17px; direction: ltr; text-align: right; }.summary-item em { color: var(--muted); font-size: 9px; font-style: normal; }.summary-item.muted { background: #fcfbfd; }.summary-item.final { background: var(--warning-bg); }.summary-item.final strong { color: #865a0d; }
.calculator-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }.section-heading .eyebrow { color: var(--brand-dark); }.section-heading h2 { margin: 0; font-size: 20px; }.secondary-button { padding: 9px 14px; border: 1px solid var(--line); background: #fff; color: var(--brand); font-size: 11px; }.secondary-button:hover { border-color: #dc2626; color: #dc2626; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; } table { width: 100%; min-width: 1250px; border-collapse: separate; border-spacing: 0; } th { padding: 13px 8px; border-bottom: 1px solid var(--line); background: var(--soft); color: var(--brand-dark); font-size: 11px; font-weight: 900; text-align: center; white-space: nowrap; } td { height: 52px; padding: 7px 5px; border-bottom: 1px solid var(--line); text-align: center; } tbody tr:last-child td { border-bottom: 0; } tbody tr:hover td { background: #fffbfd; }.index { color: #8b7d91; font-size: 11px; font-family: var(--number-font); }.row-select { width: 100%; min-width: 108px; height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; outline-color: var(--brand); background: #fff; color: var(--ink); font-size: 10px; }.row-select:disabled { background: #faf8fa; color: #a99fac; }.money, .summary-item strong { font-family: var(--number-font); font-variant-numeric: tabular-nums; }.money { color: var(--brand-dark); font-size: 11px; font-weight: 700; white-space: nowrap; direction: ltr; }.money.total { background: #fff8e9; color: #865a0d; }.money.zero { background: transparent; color: #9ca9a5; font-weight: 400; }
.section-actions { display: flex; gap: 8px; }.add-button { padding: 9px 14px; border: 1px solid var(--brand); border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-light)); color: #fff; cursor: pointer; font-size: 11px; font-weight: 800; box-shadow: 0 10px 22px rgba(160,0,90,.18); }.add-button:disabled { cursor: default; opacity: .55; box-shadow: none; }.section-hint { margin: -3px 0 16px; color: var(--muted); font-size: 11px; font-weight: 700; }.damage-list { display: grid; gap: 14px; }.damage-item { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: box-shadow .18s ease, border-color .18s ease; }.damage-item.has-value { border-color: rgba(160,0,90,.22); box-shadow: 0 8px 24px rgba(112,0,63,.07); }.damage-topline { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fcf7fa; border-bottom: 1px solid var(--line); }.damage-topline strong { color: var(--brand-dark); font-size: 13px; }.damage-topline button { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 700; }.damage-topline button:hover { color: #dc2626; }.damage-fields { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 12px; padding: 16px; }.select-field { display: grid; gap: 7px; }.select-field span { color: var(--muted); font-size: 10px; font-weight: 800; }.select-field .row-select { min-width: 0; height: 42px; font-size: 11px; }.select-field.is-disabled { opacity: .58; }.select-field.is-disabled select { pointer-events: none; background: #faf8fa; }.line-totals { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); background: #fdfcff; }.line-totals > div { display: flex; flex-direction: column; gap: 5px; padding: 12px 16px; border-left: 1px solid var(--line); }.line-totals span { color: var(--muted); font-size: 9px; font-weight: 700; }.line-totals strong { color: var(--brand-dark); font-family: var(--number-font); font-size: 14px; direction: ltr; text-align: right; }.line-totals .line-final { background: #fff8e9; }.line-totals .line-final strong { color: #865a0d; }
.note-card { display: flex; gap: 13px; margin-top: 18px; padding: 16px 18px; border-right: 4px solid var(--gold); border-radius: 14px; background: #fffaf0; color: #7a4a08; }.note-icon { flex: 0 0 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-family: Georgia,serif; font-weight: 700; }.note-card strong { font-size: 11px; }.note-card p { margin: 6px 0 0; font-size: 10px; line-height: 1.8; }
@media (max-width: 800px) { .app-shell { width: min(100% - 24px,1360px); padding-top: 14px; }.site-header { min-height: auto; flex-wrap: wrap; gap: 18px; padding: 21px; }.brand { padding-left: 0; border: 0; }.header-copy { order: 3; flex-basis: 100%; }.summary-card { grid-template-columns: 1fr 1fr; }.summary-label { grid-column: span 2; min-height: 65px; }.summary-item { min-height: 75px; border-top: 1px solid var(--line); }.calculator-card { padding: 14px; }.section-heading { align-items: flex-start; gap: 12px; flex-direction: column; }.section-actions { width: 100%; }.section-actions button { flex: 1; }.damage-fields { grid-template-columns: 1fr 1fr; }.line-totals { grid-template-columns: 1fr 1fr; }.line-totals > div:nth-child(2) { border-left: 0; }.line-totals > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .damage-fields { grid-template-columns: 1fr; }.line-totals { grid-template-columns: 1fr; }.line-totals > div { border-left: 0; border-bottom: 1px solid var(--line); }.line-totals > div:last-child { border-bottom: 0; } }
@media print { body { background: #fff; }.app-shell { width: 100%; padding: 0; }.site-header { border-radius: 0; box-shadow: none; }.print-button,.secondary-button { display: none; }.calculator-card { padding: 12px 0; border: 0; box-shadow: none; }.summary-card { box-shadow: none; }.row-select { appearance: none; border: 0; background: transparent; } }
.summary-label span { color: #000; font-size: 16px; font-weight: 900; }
.row-select, .row-select option { font-family: "Museo700", "MuseoLatin", "MuseoDigits", "GE SS Two", Cairo, Tahoma, Arial, sans-serif !important; font-weight: 700; font-variant-numeric: tabular-nums; }
.money-display { display: inline-flex; align-items: center; direction: ltr; }
.riyal-symbol { display: inline-block; flex: 0 0 auto; width: 1.08em; height: 1.2em; margin-right: 7px; background: currentColor; -webkit-mask: url("assets/saudi-riyal.svg") center / contain no-repeat; mask: url("assets/saudi-riyal.svg") center / contain no-repeat; }
.summary-item strong { color: #c0006e; font-size: 22px; }
.summary-item.final strong { color: #9a6500; }
.line-totals strong { color: #c0006e; font-size: 19px; }
.line-totals .line-final strong { color: #9a6500; }
.summary-item strong, .summary-item strong .money-display, .summary-item strong .money-display > span:last-child { color: #c0006e !important; font-size: 22px !important; font-weight: 700 !important; }
.summary-item.final strong, .summary-item.final strong .money-display, .summary-item.final strong .money-display > span:last-child { color: #9a6500 !important; }
.line-totals strong, .line-totals strong .money-display, .line-totals strong .money-display > span:last-child { color: #c0006e !important; font-size: 19px !important; font-weight: 700 !important; }
.line-totals .line-final strong, .line-totals .line-final strong .money-display, .line-totals .line-final strong .money-display > span:last-child { color: #9a6500 !important; }
.note-card { display: block; overflow: hidden; padding: 0; border: 1px solid #ecd9b5; border-right: 0; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 4px 16px rgba(112,0,63,.05); }.note-header { padding: 11px 18px; background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; font-size: 14px; font-weight: 900; }.note-body { padding: 8px 18px 10px; background: linear-gradient(90deg, #fffaf0, #fff); }.note-card p { position: relative; margin: 0; padding: 7px 18px 7px 0; color: #000; font-size: 12px; font-weight: 700; line-height: 1.8; }.note-card p + p { margin-top: 2px; border-top: 1px solid #f1e5cf; }.note-card p::before { content: "•"; position: absolute; right: 0; color: var(--gold); font-size: 18px; line-height: 1.45; }
