/* =========================
   Tooliti Master UI (No fonts)
   Mobile overflow + table fix included
   ========================= */

.tlt{
  max-width:1200px;
  margin:0 auto;
  padding:16px 0;
}

.tlt, .tlt *{ box-sizing:border-box; }

/* IMPORTANT: stop page from horizontal push when table opens */
.tlt,
.tlt-layout,
.tlt-card,
.tlt-results,
.tlt-details{
  max-width:100%;
}

.tlt-layout{
  display:grid;
  grid-template-columns:420px 1fr;
  gap:18px;
  align-items:start;

  background:#fff;
  border:1px solid #e6e8ef;
  border-top:5px solid #1f5fff;
  border-radius:16px;
  box-shadow:0 14px 35px rgba(16,24,40,.10);
  padding:18px;

  /* KEY FIX */
  overflow:hidden;         /* prevents table from pushing page */
}

/* Inner cards */
.tlt-card{
  background:#fff;
  border:1px solid #eef0f5;
  border-radius:16px;
  padding:16px;
  box-shadow:0 10px 24px rgba(16,24,40,.06);

  /* KEY FIX */
  overflow:hidden;
}

.tlt-results{
  background:#f5f8ff;
  border-color:#e8efff;
}

.tlt-card-title{
  font-size:14px;
  font-weight:800;
  color:#101828;
  margin-bottom:12px;
}

.tlt-grid{display:grid;gap:12px;}
.tlt-field label{
  display:block;
  margin:0 0 6px;
  font-size:12px;
  color:#344054;
  font-weight:700;
}

/* Inputs */
.tlt-inputwrap{
  position:relative;
  display:flex;
  align-items:center;
  width:100%;
  max-width:100%;
}

.tlt-prefix,.tlt-suffix{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  color:#667085;
  font-size:13px;
  font-weight:700;
  pointer-events:none;
}

.tlt-prefix{left:12px;}
.tlt-suffix{right:12px;}

.tlt input,
.tlt select{
  width:100%;
  max-width:100%;
  padding:14px 12px;
  border:1px solid #d0d5dd;
  border-radius:12px;
  background:#fff;
  font-size:15px;
  outline:none;
  transition:.15s;

  /* KEY FIX: prevents weird overflow on some mobiles */
  min-width:0;
}

.tlt .tlt-prefix + input{padding-left:28px;}
.tlt input:focus,.tlt select:focus{
  border-color:#01ceff;
  box-shadow:0 0 0 4px rgba(1,206,255,.18);
}

.tlt-actions{display:flex;gap:12px;margin-top:10px;flex-wrap:wrap;}
.tlt-btn{
  padding:12px 16px;
  border-radius:12px;
  border:1px solid transparent;
  /*font-weight:800;*/
  font-size:15px;
  cursor:pointer;
}
.tlt-btn-primary{background:#1f5fff;color:#fff;}
.tlt-btn-primary:hover{filter:brightness(.95);}
.tlt-btn-ghost{background:#fff;border-color:#d0d5dd;color:#101828;}
.tlt-btn-ghost:hover{background:#f9fafb;}

.tlt-link{
  width:100%;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 12px;
  border:1px dashed #d0d5dd;
  border-radius:12px;
  background:#fbfcfe;
  cursor:pointer;
  color:#1f5fff;
  font-weight:800;
  font-size:13px;
}
.tlt-caret{opacity:.7;}

.tlt-optional{margin-top:10px;}
.tlt-row label{
  display:flex;
  gap:8px;
  align-items:center;
  font-size:13px;
  color:#475467;
  font-weight:700;
}
.tlt-row input{width:auto;}

.tlt-hint{margin-top:6px;font-size:12px;color:#667085;}
.tlt-note{
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  background:#fff3f3;
  border:1px solid #ffd0d0;
  color:#b42318;
  font-size:13px;
}

/* Big result box */
.tlt-big{
  padding:16px;
  border:1px solid #e8efff;
  border-radius:14px;
  background:#eef4ff;
}
.tlt-big-label{font-size:13px;color:#344054;font-weight:800;}
.tlt-big-value{
  font-size:40px;
  letter-spacing:-.03em;
  font-weight:900;
  color:#101828;
  margin-top:6px;
}
.tlt-big-sub{margin-top:6px;color:#667085;font-size:13px;}

/* KPI grid */
.tlt-kpis{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.tlt-kpi{
  border:1px solid #e8efff;
  border-radius:14px;
  padding:14px;
  background:#fff;

  /* KEY FIX: stops child text from forcing width */
  min-width:0;
}
.tlt-kpi-label{font-size:12px;color:#667085;font-weight:800;}
.tlt-kpi-value{margin-top:8px;font-size:18px;font-weight:900;color:#101828;}

/* Details + table */
.tlt-details{
  margin-top:14px;

  /* KEY FIX */
  overflow:hidden; /* so opened content can't push layout */
}

.tlt-details summary{
  cursor:pointer;
  font-weight:900;
  color:#1f5fff;

  /* nicer tap target */
  padding:10px 0;
}

.tlt-tablewrap{
  margin-top:10px;
  border:1px solid #e6e8ef;
  border-radius:14px;
  background:#fff;

  /* KEY FIX: horizontal scroll only inside wrapper */
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  max-width:100%;
}

.tlt-table{
  width:100%;
  border-collapse:collapse;
  background:#fff;

  /* KEY FIX: force scroll when needed (instead of page overflow) */
  min-width:680px;
}

.tlt-table th,.tlt-table td{
  padding:12px 10px;
  border-bottom:1px solid #eef0f5;
  text-align:right;
  font-size:13px;
  white-space:nowrap;
}
.tlt-table th{
  font-weight:900;
  color:#344054;
  background:#fbfcff;
}
.tlt-table th:first-child,.tlt-table td:first-child{text-align:left;}

/* Export buttons */
.tlt-export{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
  justify-content:center;   /* buttons center */
}
.tlt-export .tlt-btn{
  padding:10px 12px;
  font-size:13px;
  border-radius:12px;
}
.tlt-btn-small{
  background:#fff;
  border:1px solid #d0d5dd;
  color:#101828;
}
.tlt-btn-small:hover{background:#f9fafb;}

/* Placeholder color */
.tlt input::placeholder,
.tlt textarea::placeholder{ color:#9aa3af; opacity:1; }

/* Remove number arrows */
.tlt input[type=number]::-webkit-outer-spin-button,
.tlt input[type=number]::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.tlt input[type=number]{ -moz-appearance:textfield; }

/* =========================
   Responsive (Mobile)
   ========================= */
@media (max-width: 980px){
  .tlt{ padding:10px 0; }

  .tlt-layout{
    grid-template-columns:1fr;
    padding:14px;
    gap:14px;
    border-radius:14px;
  }

  .tlt-card{ padding:14px; border-radius:14px; }

  .tlt-big-value{ font-size:34px; }

  .tlt-kpis{
    grid-template-columns:1fr;  /* stack KPIs on mobile */
  }

  .tlt-table{
    min-width:620px; /* enough to scroll nicely on small screens */
  }

  .tlt-table th,.tlt-table td{
    padding:10px 9px;
    font-size:12.5px;
  }
}

/* ===== 401k Schedule Table ===== */

.tlt-schedule-wrap{
    width:100%;
    overflow-x:auto;
    margin-top:25px;
}

.tlt-schedule{
    width:100%;
    border-collapse:collapse;
    font-size:15px;
    background:#fff;
}

.tlt-schedule thead th{
    background:#3b6a9a; /* same blue as form heading */
    color:#fff;
    padding:12px 10px;
    text-align:left;
    font-weight:600;
}

.tlt-schedule td{
    padding:10px;
    border-bottom:1px solid #e3e8ef;
}

.tlt-schedule tbody tr:nth-child(even){
    background:#f7f9fc;
}

/* retirement separator row */
.tlt-schedule .retired-row td{
    background:#eef2f7;
    font-weight:700;
    text-align:center;
    padding:14px;
}

/* make numbers align better */
.tlt-schedule td:nth-child(2),
.tlt-schedule td:nth-child(3),
.tlt-schedule td:nth-child(4){
    text-align:right;
    font-variant-numeric:tabular-nums;
}

/* =========================
   16 March 2026 V2 - Future Tool Reusable Layout Helpers START
   ========================= */

.tlt-form-shell{
  background:#fff;
  border:1px solid #e6e8ef;
  border-top:5px solid #1f5fff;
  border-radius:16px;
  box-shadow:0 14px 35px rgba(16,24,40,.10);
  padding:18px;
  overflow:hidden;
}

.tlt-form-shell-inner{
  border:1px solid #eef0f5;
  border-radius:16px;
  padding:16px;
  background:#fff;
}

.tlt-tool-wrap{
  width:100%;
}

.tlt-tool-topgrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  align-items:start;
}

.tlt-tool-bottomgrid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
  align-items:start;
  margin-top:18px;
}

.tlt-tool-col{
  min-width:0;
  background:transparent;
  border:none;
  border-radius:0;
  padding:0;
  box-shadow:none;
}

.tlt-tool-sectionhead{
  background:#eef4ff;
  color:#101828;
  font-size:14px;
  font-weight:800;
  padding:12px 14px;
  border-radius:12px;
  margin:0 0 14px;
}

.tlt-tool-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-start;
  margin-top:18px;
}

.tlt-inline-2{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}

.tlt-note-sm{
  margin-top:6px;
  font-size:12px;
  color:#667085;
  line-height:1.55;
}

.tlt-stack-18 > * + *{
  margin-top:18px;
}

.tlt-input-has-prefix{
  padding-left:28px !important;
}

.tlt-input-has-suffix{
  padding-right:42px !important;
}

.tlt-table-num{
  text-align:right !important;
  font-variant-numeric:tabular-nums;
}

.tlt-table-left{
  text-align:left !important;
}

.tlt-center-btn{
  display:flex;
  justify-content:center;
  margin-top:18px;
}

@media (max-width: 980px){
  .tlt-tool-topgrid,
  .tlt-inline-2{
    grid-template-columns:1fr;
    gap:12px;
  }

  .tlt-tool-bottomgrid{
    gap:16px;
  }
}

@media (max-width: 640px){
  .tlt-form-shell{
    padding:14px;
    border-radius:14px;
  }

  .tlt-form-shell-inner{
    padding:14px;
    border-radius:14px;
  }

  .tlt-tool-sectionhead{
    font-size:13px;
    padding:11px 12px;
    margin-bottom:12px;
  }
}

/* =========================
   16 March 2026 V2 - Future Tool Reusable Layout Helpers END
   ========================= */
   
  
   
   
