.gradient {
  background: #0d420d;
  background: linear-gradient(90deg, rgba(13, 66, 13, 1) 0%, rgba(49, 107, 49, 1) 35%, rgba(99, 99, 99, 1) 100%);
  color: #fff;
}

@media (max-width: 767px) {
  .hide {
    display: none;
  }
}

.grid {
  xbackground-color: #fff;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.133) 0px 1.6px 3.6px 0px, rgba(0, 0, 0, 0.11) 0px 0.3px 0.9px 0px;
  width: 100%;
  border-collapse: collapse;
  overflow: auto hidden;
  -webkit-overflow-scrolling: touch;
  background: white;
  
}
.grid .thead {
  display: table-header-group;
}
.grid .tbody {
  display: table-row-group;
}
.grid-heading, .grid-row {
  xdisplay: flex;
  align-items: center;
  xflex-direction: row;  
  border-right: 1px solid #dbdbdb;
  clear: both;
  display: flex;
  align-items: center;
}
/*.grid-heading th, .grid-row td,
.grid-heading div, .grid-row div {
  xflex: 1;
  padding: .75em;
  border-left: 1px solid #dbdbdb;
}
.grid-heading th, {
  border: none;
}
.grid-heading > div:first-child,
.grid-row > div:first-child {
  xflex: 0 1 15%;
  text-align: left;
}*/
.grid-heading {
  margin: auto;
  background-color: #0c420c !important;
  color: white;
  font-weight: bold;
}
.grid-row {
  background-color: #fff;
  xborder-bottom: 1px solid #e8e8e8;
  box-shadow: 0 1px 0 0 #cfd7df;
  xmargin-top: .5em;
  border-bottom: var(--border);
  background: var(--row-bg);
}
.grid-row > div {
  xflex: 0 0 var(--col-width);
  flex: 1 1 30px;   /* grow and shrink, base size 120px */
  min-width: 30px;  /* never get smaller than 120px */
  xmax-width: 90px;  /* optional: don’t get too wide */
  xwidth: var(--col-width);
  padding: 0 10px;
  height: var(--row-height);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-right: var(--border);
  box-sizing: border-box;
}
.grid-row > div:nth-child(1) { flex: 2 1 180px; min-width: 180px; }
.grid-row > div:nth-child(2) { flex: 1 1 150px; min-width: 100px; }

/* Stripe only the data rows, skipping any .show rows */
tbody tr.grid-row:nth-child(odd of .grid-row)  { background-color: #fff;}
tbody tr.grid-row:nth-child(even of .grid-row) { background-color: #eee;}

/* Optional: full-row hover */
/*tbody tr.grid-row:hover { background-color: #eeffea !important; }*/

/* Ensure .show rows aren’t styled */
tbody tr.show { background: transparent; }


/* Hide pseudo-labels on desktop */
.grid-row > td::before {
  display: none;
}

/* Mobile - flex mini-table layout */
/*
@media (max-width: 768px) {

  .grid thead {
    display: none;
  }

  .grid-row {
    xborder: 1px solid #ccc;
    display: flex;
    flex-wrap: wrap;
  }

  .grid-row > td.stacked {
    flex: 0 0 100%;
    order: 0;
    xborder-bottom: 1px solid #ccc;
    border: none;
    padding: 0.5em;
    xbackground: #f9f9f9;
  }

  .grid-row > td:not(.stacked) {
    flex: 0 0 20%;
    box-sizing: border-box;
    xborder: 1px solid #ccc;
    border: none;
    font-size: .7em;
    padding: 0.5em;
    text-align: left !important;
    position: relative;
  }

  .grid-row > td:not(.stacked)::before {
    content: attr(data-label) ": ";
    xfont-weight: bold;
    display: inline;
  }

  @media (max-width: 480px) {
    .grid-row > td:not(.stacked) {
      flex: 0 0 25%;
    }
  }
}

*/

.show {
  -webkit-box-shadow: inset 0 20px 10px -20px rgba(0,0,0,0.5); 
  -moz-box-shadow: inset 0 20px 10px -20px rgba(0,0,0,0.5); 
  box-shadow: inset 0 20px 10px -20px rgba(0,0,0,0.5);

  column-span: all;
}
.show > td {
  padding: 0px;
}

.grid-body .row + div {
  background-color: #eaeaea;
  -webkit-box-shadow: inset 0 20px 10px -20px rgba(0,0,0,0.5); 
  -moz-box-shadow: inset 0 20px 10px -20px rgba(0,0,0,0.5); 
  box-shadow: inset 0 20px 10px -20px rgba(0,0,0,0.5);
  padding: .5em;
}

.stacked {
  align-items: center;
  border: none;
  display: flex;
  xflex-flow: row wrap;
  flex-wrap: column;
  flex: 0 1 30%;
  gap: 1em;
  text-align: left;
}
.stacked div:first-child {
  flex: 1 1 auto;
}
.stacked div {
  display: flex;
  align-items: center;
  padding: 0;
  gap: 1em;
  border: none;
}

.col-heading {
  border-bottom: 1px solid #cecece;
  margin-bottom: .25em;
  font-weight: bold;
  text-align: left;
}

.toggle ul {
  display: flex;
  list-style-type: none;
  margin: auto;
}
.toggle ul > li {
  margin: 0 1em;
}

.label {font-size: .75em; font-weight: bold; /*color: #8e8e8e;*/ color: #000;}	
.d-flex span {display: block; text-align: left;}

/*.nav {
  border-bottom: 1px solid #bebebe;
  display: flex;
}
.nav span {
  margin: 0 1em;
}
.nav span a {
  display: block;
  padding: 5px 8px;
}*/
 
.horse-tab-container {
  xpadding: 1em 1em 2em 1em;
  padding-bottom: 1.5em;
}

.hscroll {
  display: grid;
  background: var(--fade-bg, #fff); /* match your page/bg color */
  position: relative;
}
.horse-tab {
    background-color: #eaeaea;
    border-top: 1px solid #ccc;
    display: flex;
    xflex-wrap: wrap;
    gap: 1em;
    padding: .5em 1em;
    list-style: none;
    overflow-x: auto;        /* Enables horizontal scrolling */
    overflow-y: hidden;      /* Prevents vertical scrolling in this container */
    white-space: nowrap;     /* Keeps content on one line so it scrolls sideways */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}
.horse-tab::-webkit-scrollbar {
  display: none;
}
.hscroll::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;           /* fade width */
  height: 100%;
  pointer-events: none;  /* don’t block swipes/taps */
  background: linear-gradient(
    to left,
    var(--fade-bg, #d9d9d9) 30%,
    transparent
  );
}
.horse-tab>* {
    flex: none;
    position: relative;
}
.horse-tab>*>a {
    display: flex;
    align-items: center;
    column-gap: .25em;
    justify-content: center;
    padding: 5px 10px;
    color: #999;
    border-bottom: 1px solid transparent;
    font-size: .875rem;
    text-transform: uppercase;
    transition: color .1s ease-in-out;
    cursor: pointer;
}
.horse-tab>.active>a {
    background-color: #fff;
    color: #333;
    border-color: #1e87f0;
}
.htab-content {
    display: none;
    background-color: #fff;
    padding: .5em;
}

.htab-content.active {
    display: block;
}


.form-section {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  align-content: stretch;
}

.form-section .section:nth-child(1) {
  display: block;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  align-self: auto;
  order: 0;
}

.form-section .section:nth-child(2) {
  display: block;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: auto;
  align-self: auto;
  order: 0;
}

.form-section .section:nth-child(3) {
  display: block;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 100%;
  align-self: auto;
  order: 0;
}

.rafi-panel {
  display: flex;
  flex-flow: column wrap;
  gap: 1em;
  background-color: #e6f3ff;
}