/* Alhutech shared design for the founder, apply and Meet pages.
   One look across all three: the Alhutech brand fonts, the cream
   card with the gold top edge, and buttons big enough to tap. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/branding/fonts/SpaceGrotesk-Bold.woff2') format('woff2'), url('/branding/fonts/SpaceGrotesk-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Space Grotesk';
  src: url('/branding/fonts/SpaceGrotesk-Medium.woff2') format('woff2'), url('/branding/fonts/SpaceGrotesk-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/branding/fonts/PlusJakartaSans-Regular.woff2') format('woff2'), url('/branding/fonts/PlusJakartaSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/branding/fonts/PlusJakartaSans-SemiBold.woff2') format('woff2'), url('/branding/fonts/PlusJakartaSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('/branding/fonts/PlusJakartaSans-Bold.woff2') format('woff2'), url('/branding/fonts/PlusJakartaSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* { box-sizing: border-box; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  background: #FFFBF5;
  color: #06231B;
  margin: 0;
}

h1, h2 { font-family: 'Space Grotesk', 'Plus Jakarta Sans', Arial, sans-serif; }
h2 { color: #14654C; margin-top: 0; }

header { background: #0B3D2E; color: #fff; padding: 20px; }
header h1 { margin: 0; font-size: 22px; }
header p { margin: 4px 0 0; color: #EABF4C; }
.brandlogo { height: 48px; width: auto; display: block; margin-bottom: 10px; }

main { margin: 0 auto; padding: 20px; }

.card {
  background: #fff;
  border-radius: 16px;
  border-top: 5px solid #D9A419;
  box-shadow: 0 6px 20px rgba(6, 35, 27, .12);
  padding: 16px;
  margin-bottom: 20px;
}

label { display: block; font-size: 14px; font-weight: 700; color: #0B3D2E; margin: 14px 0 6px; }

input, select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  color: #22302A;
  background: #fff;
  padding: 12px;
  border: 1.5px solid #CFC8B4;
  border-radius: 10px;
  margin: 2px 0 10px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #14654C; border-color: #14654C; }

button {
  min-height: 44px;
  background: #14654C;
  color: #fff;
  border: none;
  padding: 10px 16px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  margin-right: 8px;
}
button.gold { background: #D9A419; color: #06231B; }
button.reject { background: #fff; color: #14654C; border: 1px solid #14654C; }
button:disabled { opacity: 0.6; cursor: default; }

a.alertBtn {
  display: inline-block;
  min-height: 44px;
  line-height: 22px;
  background: #fff;
  color: #14654C;
  border: 1px solid #D9A419;
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 6px;
}

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid #ddd; font-size: 14px; }
th { color: #14654C; font-family: 'Space Grotesk', 'Plus Jakarta Sans', Arial, sans-serif; }
tbody tr:nth-child(even) { background: #F7F5EF; }
tbody tr:hover { background: #FFF8E1; }

/* On a phone the wide tables scroll sideways inside their card
   instead of squeezing, so every column stays readable. */
.tableWrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tableWrap table { min-width: 640px; }
.swipeHint { display: none; }
@media (max-width: 700px) {
  .swipeHint { display: block; font-size: 13px; color: #555; margin: 0 0 8px; }
}

.error { color: #B3261E; }
.success { color: #14654C; font-weight: bold; }
.small { font-size: 14px; color: #555; line-height: 1.55; }
.fieldError { display: block; color: #B3261E; font-size: 14px; }

/* Sales platform layout: pine sidebar, content area, KPI cards,
   pipeline columns and the lead detail panel. */
.layout { display: flex; min-height: 100vh; }
#sidebar {
  width: 220px; flex-shrink: 0; background: #0B3D2E; color: #fff;
  padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
#sidebar .brand { font-family: 'Space Grotesk', sans-serif; font-size: 20px; margin: 0 0 4px; }
#sidebar .brandSub { color: #EABF4C; font-size: 13px; margin: 0 0 20px; }
#sidebar button {
  display: block; width: 100%; text-align: left; background: transparent;
  color: #fff; border: none; border-radius: 8px; margin: 0 0 4px;
  padding: 10px 12px; font-size: 15px; font-weight: 600; min-height: 44px;
}
#sidebar button.active { background: #14654C; }
#sidebar button:hover { background: #14654C; }
#sidebar .who { margin-top: 24px; font-size: 13px; color: #C9D6CF; line-height: 1.5; }
#content { flex: 1; min-width: 0; padding: 20px; }
#content h1 { margin-top: 0; }
.view { display: none; }
.view.active { display: block; }

.kpiGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: #fff; border-radius: 12px; border-top: 4px solid #D9A419; box-shadow: 0 4px 14px rgba(6,35,27,.10); padding: 14px; }
.kpi .num { font-family: 'Space Grotesk', sans-serif; font-size: 28px; color: #06231B; }
.kpi .lbl { font-size: 13px; color: #5C7D6E; margin-top: 2px; }

.pipeline { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.stageCol { min-width: 230px; flex: 1; background: #F7F5EF; border-radius: 12px; padding: 10px; }
.stageCol h3 { margin: 0 0 8px; font-size: 14px; color: #0B3D2E; }
.leadCard {
  background: #fff; border-radius: 10px; padding: 10px; margin-bottom: 8px;
  box-shadow: 0 2px 8px rgba(6,35,27,.08); cursor: pointer;
}
.leadCard .nm { font-weight: 700; font-size: 14px; }
.leadCard .meta { font-size: 13px; color: #555; margin-top: 2px; }
.scoreBadge {
  display: inline-block; background: #E6F4EA; color: #14654C; font-weight: 700;
  font-size: 12px; border-radius: 20px; padding: 2px 8px; margin-top: 6px;
}
.scoreBadge.hot { background: #14654C; color: #fff; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; flex: 1; min-width: 140px; margin: 0; }
.toolbar button { margin: 0; }

#leadDetail { display: none; }
#leadDetail.open { display: block; }
.scoreBar { height: 10px; background: #EDEBE2; border-radius: 5px; overflow: hidden; margin: 6px 0 10px; }
.scoreBar > div { height: 100%; background: #14654C; }
.breakdown { font-size: 14px; color: #555; margin: 0 0 12px; }
.breakdown li { margin-bottom: 2px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 3px solid #D9A419; padding: 0 0 12px 12px; margin-bottom: 4px; }
.timeline .when { font-size: 13px; color: #555; }

#mobileTopbar { display: none; background: #0B3D2E; color: #fff; padding: 12px 16px; align-items: center; gap: 12px; }
#mobileTopbar button { background: #14654C; margin: 0; }
#mobileTopbar .t { font-family: 'Space Grotesk', sans-serif; font-size: 17px; }

@media (max-width: 700px) {
  .layout { flex-direction: column; }
  #sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 20;
    transform: translateX(-100%); transition: transform .2s ease; height: 100vh;
  }
  #sidebar.open { transform: translateX(0); }
  #mobileTopbar { display: flex; }
  .kpiGrid { grid-template-columns: repeat(2, 1fr); }
  #content { padding: 14px; }
}
