/* Annuity Calculator Styles - Calculator Archive Exact Clone */
:root {
  --k-navy: #1b365d;
  --k-blue-header: #2f5c94;
  --k-blue-subhdr: #2f5c94;
  --k-blue-subhdr-dark: #224b7a;
  --k-blue-link: #0844a4;
  --k-blue-link-hover: #002277;
  --k-green-btn: #377d22;
  --k-green-btn-hover: #2b631b;
  --k-green-hdr: #477626;
  --k-gray-btn: #e2e8f0;
  --k-gray-btn-text: #334155;
  --k-gray-btn-hover: #cbd5e1;
  --k-border: #cbd5e1;
  --k-border-dark: #7f9db9;
  --k-bg-light: #f8fafc;
  --k-bg-alt: #f1f5f9;
  --k-bg-card: #fbfbfc;
  --k-text: #333333;
  --k-text-dark: #0f172a;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--k-text);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.5;
}

.k-page-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 14px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-sizing: border-box;
}

/* Breadcrumbs Row */
.k-breadcrumbs-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.k-breadcrumbs {
  font-size: 13px;
  color: var(--k-blue-link);
}

.k-breadcrumbs a {
  color: var(--k-blue-link);
  text-decoration: none;
}

.k-breadcrumbs a:hover {
  text-decoration: underline;
}

.k-breadcrumbs span {
  color: #777777;
  margin: 0 4px;
}

.k-breadcrumbs .crumb-current {
  color: #333333;
}

/* Top Actions */
.k-top-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.k-top-link-btn {
  background: none;
  border: none;
  color: var(--k-blue-link);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.k-top-link-btn:hover {
  color: var(--k-blue-link-hover);
}

/* Page Title & Intro */
.k-main-title {
  font-size: 24px;
  font-weight: bold;
  color: #003366;
  margin: 0 0 8px 0;
  line-height: 1.2;
}

.k-main-desc {
  font-size: 13.5px;
  color: #333333;
  margin: 0 0 16px 0;
  line-height: 1.45;
  max-width: 900px;
}

.k-main-desc a {
  color: var(--k-blue-link);
  text-decoration: underline;
}

.k-main-desc a:hover {
  color: var(--k-blue-link-hover);
}

/* Two-column Layout: Content vs Sidebar */
.k-layout-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}

.k-content-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

/* Annuity Main Calculator Row: Inputs + Results side by side */
.k-annuity-top-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 18px;
  align-items: stretch;
}

/* Form Box */
.k-calc-box {
  background: #fbfbfb;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  padding: 14px;
  box-sizing: border-box;
}

.k-form-table {
  width: 100%;
  border-collapse: collapse;
}

.k-form-table td {
  padding: 5px 0;
  vertical-align: middle;
}

.k-label-td {
  font-size: 13px;
  color: #333333;
  padding-right: 8px;
  white-space: nowrap;
}

.k-input-td {
  text-align: right;
  white-space: nowrap;
}

.k-input {
  border: 1px solid #94a3b8;
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 13px;
  font-family: inherit;
  color: #1e293b;
  box-sizing: border-box;
  text-align: right;
}

.k-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px #2563eb;
}

.k-input-curr {
  width: 110px;
  text-align: right;
}

.k-input-rate {
  width: 70px;
  text-align: right;
}

.k-input-term {
  width: 60px;
  text-align: right;
}

.k-radio-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  text-align: left;
  margin-top: 4px;
  margin-bottom: 4px;
}

.k-radio-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: #333333;
}

.k-radio-label input[type="radio"] {
  margin: 0;
  cursor: pointer;
}

/* Buttons */
.k-btn-bar {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.k-calc-btn {
  background: var(--k-green-btn);
  color: #ffffff;
  border: none;
  border-radius: 3px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.k-calc-btn:hover {
  background: var(--k-green-btn-hover);
}

.k-clear-btn {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
}

.k-clear-btn:hover {
  background: #e2e8f0;
}

/* Results Box */
.k-result-box {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.k-result-header {
  background: var(--k-green-hdr);
  color: #ffffff;
  padding: 7px 12px;
  font-weight: bold;
  font-size: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.k-save-icon-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  opacity: 0.95;
  padding: 2px 6px;
  border-radius: 3px;
}

.k-save-icon-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  opacity: 1;
}

.k-result-content {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.k-result-figures {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.k-res-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13.5px;
  padding: 2px 0;
}

.k-res-row.k-primary-row {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 8px;
  margin-bottom: 4px;
}

.k-res-label {
  color: #333333;
}

.k-res-val-lg {
  font-size: 20px;
  font-weight: bold;
  color: #0f172a;
}

.k-res-val {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
}

/* Donut Chart & Legend */
.k-chart-and-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 6px;
}

.k-donut-svg {
  width: 140px;
  height: 140px;
  overflow: visible;
}

.k-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #333333;
}

.k-legend-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.k-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Accumulation Schedule Section */
.k-schedule-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.k-schedule-title {
  font-size: 18px;
  font-weight: bold;
  color: #003366;
  margin: 0;
}

.k-schedule-nav {
  display: flex;
  gap: 16px;
  font-size: 13px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 4px;
}

.k-schedule-tab {
  background: none;
  border: none;
  font-size: 13px;
  font-family: inherit;
  color: var(--k-blue-link);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

.k-schedule-tab.active {
  font-weight: bold;
  color: #003366;
  text-decoration: none;
  cursor: default;
}

.k-schedule-content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

/* Schedule Table */
.k-schedule-table-wrap {
  border: 1px solid #cbd5e1;
  border-radius: 3px;
  max-height: 380px;
  overflow-y: auto;
}

.k-schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  text-align: right;
}

.k-schedule-table th {
  background: var(--k-blue-header);
  color: #ffffff;
  padding: 6px 10px;
  font-weight: bold;
  text-align: right;
  border: 1px solid #224b7a;
  position: sticky;
  top: 0;
  z-index: 2;
}

.k-schedule-table th:first-child {
  text-align: center;
}

.k-schedule-table td {
  padding: 5px 10px;
  border-bottom: 1px solid #e2e8f0;
  color: #333333;
}

.k-schedule-table td:first-child {
  text-align: center;
  font-weight: 500;
}

.k-schedule-table tr:nth-child(even) {
  background-color: #f8fafc;
}

.k-schedule-table tr:hover {
  background-color: #eff6ff;
}

/* Stacked Bar Growth Chart */
.k-bar-chart-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.k-bar-chart-legend {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  font-size: 11.5px;
  color: #333333;
  flex-wrap: wrap;
}

.k-bar-svg {
  width: 100%;
  height: 250px;
  overflow: visible;
}

/* ================= FRACTION ARITHMETIC SECTION ================= */
.k-fraction-card {
  background: #fbfbfc;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.k-fraction-form {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
}

.k-fraction-input-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.k-fraction-input-group input {
  width: 58px;
  height: 30px;
  text-align: center;
  font-size: 15px;
  font-weight: bold;
  border: 1px solid #94a3b8;
  border-radius: 3px;
  color: #0f172a;
}

.k-fraction-bar {
  width: 58px;
  height: 2px;
  background-color: #334155;
}

.k-fraction-op-select {
  font-size: 16px;
  font-weight: bold;
  padding: 4px 8px;
  border: 1px solid #94a3b8;
  border-radius: 3px;
  background: #ffffff;
  cursor: pointer;
}

.k-fraction-equal {
  font-size: 20px;
  font-weight: bold;
  color: #334155;
}

.k-fraction-result-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 6px 12px;
  border-radius: 4px;
  min-width: 58px;
}

.k-fraction-res-num, .k-fraction-res-den {
  font-size: 16px;
  font-weight: bold;
  color: #1e40af;
}

.k-fraction-res-bar {
  width: 100%;
  height: 2px;
  background-color: #1e40af;
}

.k-fraction-details {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px;
  border-radius: 4px;
  font-size: 13px;
}

/* ================= RIGHT SIDEBAR ================= */
.k-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.k-sidebar-search-box {
  display: flex;
  width: 100%;
  box-sizing: border-box;
}

.k-search-input-field {
  flex: 1;
  border: 1px solid #94a3b8;
  border-right: none;
  border-radius: 3px 0 0 3px;
  padding: 6px 8px;
  font-size: 13px;
  outline: none;
}

.k-search-input-field:focus {
  border-color: #2563eb;
}

.k-search-submit-btn {
  background: #2b568c;
  color: #ffffff;
  border: 1px solid #2b568c;
  border-radius: 0 3px 3px 0;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
}

.k-search-submit-btn:hover {
  background: #1b3d68;
}

.k-search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-top: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 100;
  display: none;
  max-height: 250px;
  overflow-y: auto;
}

.k-search-dropdown.show {
  display: block;
}

.k-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  text-decoration: none;
  color: #1e293b;
  font-size: 12.5px;
  border-bottom: 1px solid #f1f5f9;
}

.k-search-item:hover {
  background: #eff6ff;
  color: #1e40af;
}

.k-sidebar-card {
  border: 1px solid #2f5c94;
  border-radius: 3px;
  background: #ffffff;
  overflow: hidden;
}

.k-sidebar-header {
  background: #2f5c94;
  color: #ffffff;
  font-weight: bold;
  font-size: 13px;
  padding: 6px 10px;
}

.k-sidebar-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 8px 10px;
  gap: 4px 10px;
}

.k-sidebar-link {
  color: #0844a4;
  font-size: 12.5px;
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.k-sidebar-link:hover {
  text-decoration: underline;
  color: #002277;
}

.k-sidebar-tabs {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  padding: 6px 10px;
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
  color: #64748b;
}

.k-sidebar-tabs a {
  color: #0844a4;
  text-decoration: none;
}

.k-sidebar-tabs a:hover {
  text-decoration: underline;
}

/* ================= SEO / CONTENT GUIDE ================= */
.k-seo-container {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding-top: 20px;
  margin-top: 10px;
}

.k-seo-title {
  font-size: 20px;
  color: #003366;
  margin: 0 0 12px 0;
  font-weight: bold;
}

.k-seo-subtitle {
  font-size: 16px;
  color: #1e293b;
  margin: 18px 0 8px 0;
  font-weight: bold;
}

.k-seo-text {
  font-size: 13.5px;
  color: #334155;
  line-height: 1.6;
}

.k-seo-text p {
  margin: 0 0 12px 0;
}

.k-seo-text ul {
  margin: 0 0 12px 20px;
  padding: 0;
}

.k-seo-text li {
  margin-bottom: 6px;
}

.k-seo-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  font-size: 12.5px;
}

.k-seo-table th, .k-seo-table td {
  border: 1px solid #cbd5e1;
  padding: 7px 10px;
  text-align: left;
}

.k-seo-table th {
  background: #f1f5f9;
  font-weight: bold;
  color: #1e293b;
}

.k-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.k-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.k-faq-question {
  background: #f8fafc;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #1e293b;
}

.k-faq-question:hover {
  background: #f1f5f9;
}

.k-faq-answer {
  padding: 12px 14px;
  font-size: 13px;
  color: #334155;
  line-height: 1.55;
  border-top: 1px solid #e2e8f0;
  background: #ffffff;
}

/* ================= MODALS ================= */
.k-modal-overlay,
.k-modal,
.k-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.5) !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 9999 !important;
  padding: 14px !important;
}

.k-modal-overlay.open,
.k-modal.open,
.k-modal-backdrop.open {
  display: flex !important;
}

.k-modal-box,
.k-modal-card {
  background: #ffffff;
  border: 1px solid #2f5c94;
  border-radius: 4px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: kModalFadeIn 0.2s ease-out;
}

@keyframes kModalFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.k-modal-header {
  background: #2b568c;
  color: #ffffff;
  padding: 8px 14px;
  font-weight: bold;
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.k-modal-title {
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
}

.k-modal-close-icon,
.k-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.k-modal-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}

.k-modal-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 10px 14px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* Toast */
.k-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #1e293b;
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 13px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 2000;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.k-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
  .k-layout-grid {
    grid-template-columns: 1fr;
  }
  .k-annuity-top-grid {
    grid-template-columns: 1fr;
  }
  .k-schedule-content-grid {
    grid-template-columns: 1fr;
  }
}

/* Annuity Payout Specific Styles - Exact Clone of Reference */
.k-form-tabs {
  display: flex;
  margin-bottom: -1px;
  position: relative;
  z-index: 2;
}

.k-form-tab {
  padding: 6px 14px;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  user-select: none;
  border: 1px solid #244974;
  background: #244974;
  color: #ffffff;
  margin-right: 2px;
  transition: background 0.15s ease;
}

.k-form-tab:hover {
  background: #1b365d;
}

.k-form-tab.active {
  background: #ededed;
  color: #000000;
  border: 1px solid #b0b8c4;
  border-bottom: 1px solid #ededed;
  cursor: default;
}

.k-calc-box {
  background: #ededed;
  border: 1px solid #b0b8c4;
  border-radius: 0 4px 4px 4px;
  padding: 12px 14px;
  box-sizing: border-box;
}

.k-form-table {
  width: 100%;
  border-collapse: collapse;
}

.k-form-table td {
  padding: 4px 0;
  vertical-align: middle;
}

.k-label-td {
  font-size: 13px;
  color: #222222;
  padding-right: 8px;
  white-space: nowrap;
}

.k-input-td {
  text-align: right;
  white-space: nowrap;
}

.k-input {
  border: 1px solid #7f9db9;
  border-radius: 2px;
  padding: 3px 6px;
  font-size: 13px;
  background: #ffffff;
  color: #000000;
  box-sizing: border-box;
  text-align: right;
}

.k-input:focus {
  outline: none;
  border-color: #2563eb;
}

.k-input-curr {
  width: 110px;
}

.k-input-rate {
  width: 65px;
}

.k-input-term {
  width: 65px;
}

.k-unit-span {
  font-size: 13px;
  color: #333333;
  margin-left: 3px;
}

.k-calc-btn {
  background: linear-gradient(to bottom, #5b932c 0%, #46741f 100%);
  border: 1px solid #365c15;
  border-radius: 3px;
  color: #ffffff;
  font-weight: bold;
  font-size: 13px;
  padding: 4px 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.k-calc-btn:hover {
  background: #46741f;
}

.k-clear-btn {
  background: linear-gradient(to bottom, #a8a8a8 0%, #909090 100%);
  border: 1px solid #7a7a7a;
  border-radius: 3px;
  color: #ffffff;
  font-size: 13px;
  padding: 4px 12px;
  cursor: pointer;
  margin-left: 6px;
}

.k-clear-btn:hover {
  background: #808080;
}

/* Result Box */
.k-results-card {
  background: #ffffff;
  border-radius: 3px 3px 0 0;
  box-sizing: border-box;
}

.k-results-header {
  background: #4e7e22;
  border: 1px solid #3e661a;
  border-radius: 3px 3px 0 0;
  padding: 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ffffff;
  font-weight: bold;
  font-size: 15px;
}

.k-save-link-btn {
  background: #f0f0f0;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  font-size: 11px;
  padding: 1px 6px;
  color: #222222;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.k-save-link-btn:hover {
  background: #e0e0e0;
}

.k-results-body {
  border: 1px solid #b0b8c4;
  border-top: none;
  background: #ffffff;
  padding: 10px 12px 14px;
}

.k-primary-withdraw {
  font-size: 13.5px;
  color: #222222;
  margin-bottom: 10px;
}

.k-green-highlight {
  color: #27823b;
  font-size: 15px;
  font-weight: bold;
}

.k-res-summary-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

.k-res-summary-table td {
  border: 1px solid #d4d4d4;
  padding: 4px 8px;
  font-size: 13px;
}

.k-res-summary-table td.lbl {
  background: #f4f4f4;
  color: #222222;
  width: 55%;
}

.k-res-summary-table td.val {
  background: #ffffff;
  color: #000000;
  font-weight: bold;
  text-align: right;
}

.k-chart-legend-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.k-donut-container {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.k-donut-svg {
  width: 100%;
  height: 100%;
}

.k-legend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  color: #222222;
}

.k-legend-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.k-legend-swatch {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* Annuity Balances Section */
.k-schedule-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.k-schedule-title {
  font-size: 18px;
  font-weight: bold;
  color: #003366;
  margin: 12px 0 6px 0;
}

.k-schedule-content-grid {
  display: grid;
  grid-template-columns: 360px 290px;
  gap: 16px;
  align-items: start;
}

.k-schedule-table-wrap {
  border: 1px solid #b0b8c4;
  background: #ffffff;
  overflow-x: auto;
}

.k-schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.k-schedule-table th {
  background: #244974;
  color: #ffffff;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 6px;
  text-align: right;
  border: 1px solid #244974;
  line-height: 1.25;
}

.k-schedule-table th:first-child {
  text-align: center;
  width: 38px;
}

.k-schedule-table td {
  padding: 3px 6px;
  font-size: 12px;
  color: #222222;
  border: 1px solid #d4dce4;
  text-align: right;
}

.k-schedule-table td:first-child {
  text-align: center;
}

.k-schedule-table tr:nth-child(even) td {
  background: #f7f9fb;
}

/* Line Chart Styles */
.k-line-chart-card {
  background: #ffffff;
  border: 1px solid #b0b8c4;
  padding: 8px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.k-line-legend {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
  font-size: 12px;
  color: #222222;
  margin-bottom: 4px;
}

.k-line-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.k-line-swatch {
  width: 14px;
  height: 3px;
  border-radius: 1px;
}

.k-line-svg {
  width: 100%;
  height: 200px;
  overflow: visible;
}

/* Sidebar Styles */
.k-sidebar-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.k-sidebar-search-box {
  display: flex;
  gap: 4px;
  position: relative;
}

.k-search-input-wrap {
  display: flex;
  gap: 4px;
  width: 100%;
}

.k-search-input {
  flex: 1;
  border: 1px solid #7f9db9;
  border-radius: 2px;
  padding: 3px 6px;
  font-size: 13px;
  background: #ffffff;
  min-width: 0;
}

.k-search-btn {
  background: #244974;
  color: #ffffff;
  border: 1px solid #1a3556;
  border-radius: 2px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: normal;
  cursor: pointer;
  white-space: nowrap;
}

.k-search-btn:hover {
  background: #1b365d;
}

.k-calc-list-card {
  border: 1px solid #244974;
  border-radius: 3px 3px 0 0;
  background: #ffffff;
  overflow: hidden;
}

.k-calc-list-hdr {
  background: #244974;
  color: #ffffff;
  font-weight: bold;
  font-size: 13.5px;
  padding: 5px 8px;
}

.k-calc-list-body {
  padding: 8px 10px;
}

.k-calc-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 10px;
}

.k-calc-grid-2col a {
  color: #0844a4;
  font-size: 12.5px;
  line-height: 1.6;
  text-decoration: underline;
}

.k-calc-grid-2col a:hover {
  color: #002277;
}

.k-more-calcs-link {
  margin-top: 6px;
}

.k-more-calcs-link a {
  color: #0844a4;
  font-size: 12.5px;
  text-decoration: underline;
}

.k-calc-list-footer {
  background: #eef2f8;
  border-top: 1px solid #c8d4e4;
  padding: 4px 8px;
  font-size: 11.5px;
  color: #0844a4;
}

.k-calc-list-footer a {
  color: #0844a4;
  text-decoration: underline;
}

.k-calc-list-footer a.active {
  font-weight: bold;
}

/* Search Dropdown Results */
.k-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid #7f9db9;
  border-top: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  max-height: 280px;
  overflow-y: auto;
  z-index: 100;
  display: none;
}

.k-search-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  font-size: 12.5px;
  color: #1e3a8a;
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}

.k-search-item:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.k-search-cat {
  font-size: 11px;
  color: #64748b;
  background: #f1f5f9;
  padding: 1px 6px;
  border-radius: 3px;
}

/* ================= SITE FOOTER (Exact Match of Image 2) ================= */
.site-footer,
footer.site-footer {
  background-color: #e9e9e9 !important;
  border-top: 1px solid #d4d4d4 !important;
  padding: 24px 0 30px 0 !important;
  width: 100% !important;
  box-sizing: border-box;
}

.site-footer .footer-container {
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
  box-sizing: border-box;
}

.site-footer .footer-desc {
  font-size: 12px !important;
  color: #555555 !important;
  line-height: 1.55 !important;
  margin-bottom: 12px !important;
  text-align: left !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.site-footer .footer-links-row {
  display: block !important;
  text-align: center !important;
  margin-top: 18px !important;
  font-size: 12.5px !important;
  color: #666666 !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

.site-footer .footer-link {
  color: #0844a4 !important;
  text-decoration: none !important;
  margin: 0 2px !important;
  font-size: 12.5px !important;
  font-weight: normal !important;
}

.site-footer .footer-link:hover {
  text-decoration: underline !important;
}

.site-footer .footer-copyright {
  margin-left: 10px !important;
  margin-inline-start: 10px !important;
  color: #666666 !important;
  font-size: 12.5px !important;
  display: inline !important;
}

/* RTL Support */
[dir="rtl"] .site-footer .footer-desc {
  text-align: right !important;
}

[dir="rtl"] .site-footer .footer-copyright {
  margin-left: 0 !important;
  margin-right: 10px !important;
}


