@import url('https://fonts.googleapis.com/css2?family=Onest&display=swap');

* {
  font-family: 'Onest', sans-serif;
}

body {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  background-color: #f5f5f5;
  font-family: 'Onest', sans-serif;
}

.card-header.white {
  background-color: #fff !important;
}

.accordion-header.card-header {
  background-color: transparent !important;
}

.datepicker{
  background-color: #fff !important;
}

.transparent{
  background-color: #f5f5f5 !important;
}

label {
  font-weight: 500;
}

.custom-tooltip {
  --bs-tooltip-bg: var(--bs-primary);
}

.my-content {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--read-more-line-clamp, 4);
}

input.form-control, 
  textarea.form-control, 
  trix-editor.form-control, .select2-container .select2-selection{
  width: 100%;
  padding: 6px 12px;
  font-weight: 400;
  line-height: 1.428571429;
  color: #475467;
  background-color: #fefefe;
  background-image: none;
  border: 1px solid #c1c8d2;
  border-radius: 6px;
  -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
  -webkit-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  -o-transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  -webkit-transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s;
  transition: border-color ease-in-out .15s,box-shadow ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;
}

html {
  height: -webkit-fill-available;
}

main {
  display: flex;
  flex-wrap: nowrap;
}

a {
  text-align: center;
  text-decoration: none !important;
}
a.link{
  color: #000 !important;
}

.tox-statusbar__branding{
  display: none;
}

input[readonly] {
  background-color: white;
}

input[readonly] {
  background-color: white;
}
select {
  background-color: white;
}
/* 404 & 500 */
#notfound {
  position: relative;
  min-height: 400px;
}

#notfound .notfound {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
      -ms-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.notfound {
  max-width: 560px;
  width: 100%;
  padding-left: 160px;
  line-height: 1.1;
}

.notfound .notfound-404 {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  width: 140px;
  height: 140px;
  background-image: image-url(/emoji.png);
  background-size: cover;
}

.notfound .notfound-404:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-transform: scale(2.4);
      -ms-transform: scale(2.4);
          transform: scale(2.4);
  border-radius: 50%;
  background-color: #f2f5f8;
  z-index: -1;
}

.notfound h1 {
  font-family: 'Onest', sans-serif;
  font-size: 65px;
  font-weight: 700;
  margin-top: 0px;
  margin-bottom: 10px;
  color: #151723;
  text-transform: uppercase;
}

.notfound h2 {
  font-family: 'Onest', sans-serif;
  font-size: 21px;
  font-weight: 400;
  margin: 0;
  text-transform: uppercase;
  color: #151723;
}

.notfound p {
  font-family: 'Onest', sans-serif;
  color: #999fa5;
  font-weight: 400;
}

.notfound a {
  font-family: 'Onest', sans-serif;
  display: inline-block;
  font-weight: 700;
  border-radius: 40px;
  text-decoration: none;
  color: #388dbc;
}

#card.card{
  width: 550px;
}

@media only screen and (max-width: 767px) {
  .notfound .notfound-404 {
    width: 110px;
    height: 110px;
  }
  .notfound {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 110px;
  }
}

.navbar-custom {
  /* background-color: #003c7e; */
  background-color: #395a8b;
}
/* Modify brand and text color */
.navbar-custom .navbar-brand,
.navbar-custom .navbar-text {
  color: #fff;
}

/* Sign in with Google styles */
.flex-container {
  height: 100%;
  flex-direction: column;
  padding: 0;
  margin: 0;
  display: -webkit-box;
  display: -moz-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ebebec;
}
.flex-item {
  padding: 5px;
  margin: 10px;
  text-align: center;
}
.googleSignIn {
  border: none;
  background: #3367D6;
	border-radius: 2px;
	box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.24), 0 0 1px 0 rgba(0, 0, 0, 0.12);
  border: none;
  display: flex;
  padding: 1px;
	color: #FFF;
  &:hover {box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.24), 0 0 2px 0 rgba(0, 0, 0, 0.12);}
  &:active {background: #3367D6;}
}

.googleSignIn--white {
  background: #FFF;
  color: rgba(0,0,0,0.54);
  &:active {background: #EEEEEE;}
}

.googleSignIn__text {
  padding: 11px;
  font-family: 'Onest', sans-serif;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0.2px;
	text-align: left;
  white-space: nowrap;
}
.more-important{
  font-weight: bold;
  font-size: 14px;
}
.truncate-ellipsis {
  display: table;
  table-layout: fixed;
  white-space: nowrap;
  color: #000;
}
.less-important {
  font-size: 14px;
  color: #666;
}

.flex-inline {
  display: flex;
}

.flex-items {
  flex-wrap: wrap;
  display: flex;
}

.card-img-top {
  
  object-fit: contain;
}

/*staff */

.image-list-small {
  font-family: 'Onest', sans-serif;
  margin: 0 auto;
  text-align: center;
  padding: 0;
}

.image-list-small li {
  display: inline-block;
  width: 180px;
  margin: 0 12px 20px;
}


/* Photo */

.image-list-small li > a {
  display: block;
  text-decoration: none;
  background-size: cover;
  background-repeat: no-repeat;
  height: 200px;
  margin: 0;
  padding: 0;
  border: 4px solid #ffffff;
  outline: 1px solid #d0d0d0;
  box-shadow: 0 2px 1px #DDD;
}

.image-list-small .details {
  margin-top: 13px;
}


/* Title */

.image-list-small .details h3 {
  display: block;
  font-size: 12px;
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.image-list-small .details h3 a {
  color: #303030;
  text-decoration: none;
}

.image-list-small .details .image-author {
  display: block;
  color: #717171;
  font-size: 11px;
  font-weight: normal;
  margin: 0;
}

h6.image-author {
  display: block;
  color: #3f3c3c;
  font-size: 12px;
  font-weight: normal;
  margin: 0;
}

p.image-author {
  display: block;
  color: #717171;
  font-size: 11px;
  font-weight: normal;
  margin: 0;
  padding-top: 5px;
}

p.fullname{
  font-weight: 500;
  font-size: 16px;
} 

p.position{
  font-weight: 200;
  font-size: 14px;
  margin-top: -15px;
} 

/* Tree Vertical */
/* ul {
  margin-left: 20px;
}
.wtree li {
  list-style-type: none;
  margin: 10px 0 10px 10px;
  position: relative;
}
.wtree li:before {
  content: "";
  position: absolute;
  top: -10px;
  left: -20px;
  border-left: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  width: 20px;
  height: 15px;
}
.wtree li:after {
  position: absolute;
  content: "";
  top: 5px;
  left: -20px;
  border-left: 1px solid #ddd;
  border-top: 1px solid #ddd;
  width: 20px;
  height: 100%;
}
.wtree li:last-child:after {
  display: none;
}
.wtree li span {
  display: block;
  border: 1px solid #ddd;
  padding: 10px;
  color: #888;
  text-decoration: none;
}
.wtree li span:hover, .wtree li span:focus {
  background: #eee;
  color: #000;
  border: 1px solid #aaa;
}
.wtree li span:hover + ul li span, .wtree li span:focus + ul li span {
  background: #eee;
  color: #000;
  border: 1px solid #aaa;
}
.wtree li span:hover + ul li:after, .wtree li span:focus + ul li:after, .wtree li span:hover + ul li:before, .wtree li span:focus + ul li:before {
  border-color: #aaa;
}

*/

.remove.accordion-button::after {
  background-image: initial;
  width: 0;
}

.remove.accordion-button:not(.collapsed)::after {
  background-image: initial;
  width: 0;
}


/*Tree Horizontal*/
.tree,
.tree ul {
  position: relative;        
  display: table;
  margin: 5px 0 0 0 !important;
  padding: 6px 0 0 0 !important;
  line-height: normal;
  text-align: center;
  word-wrap: break-word;
  word-break: break-all;
}
.tree li {
  position: relative;
  display: table-cell;
}
/* Indent between paragraphs */
.tree li:not(:only-child) {
  padding: 0 .5em;
}
.tree li:last-child {
  padding-right: 0;
}
.tree li:first-child {
  padding-left: 0;
}
/* lines */
.tree ul:before,
.tree ul li:before,
.tree ul li:after {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 50%;
  height: 5px;
  border-right: 1px solid #999;
}
.tree ul:before {
  top: -4px;
}
.tree ul li:not(:only-child):before {
  border-top: 1px solid #999;
}
.tree ul li:not(:only-child):first-child:before {
  right: 0;
  left: auto;
  border-left: 1px solid #999;
  border-right: none;
}
.tree ul li:not(:only-child):first-child:before,
.tree ul li:not(:only-child):last-child:before { /* optional, 0.5 is taken from the padding property in the selector .tree li:not(:only-child) */
  width: calc(50% + .5em/2);
}
.tree ul li:after {
  border: none;
}
.tree ul li:not(:last-child):not(:first-child):after {
  width: 100%;
  border-top: 1px solid #999;
}

.login-with-google-btn {
  transition: background-color 0.3s, box-shadow 0.3s;
  padding: 10px 16px 12px 42px;
  border: 1px solid #dadcde;
  border-radius: 5px;
  box-shadow: 0 -1px 0 rgba(226, 216, 216, 0.04), 0 1px 1px rgba(0, 0, 0, .25);
  color: #757575;
  font-size: 16px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont,  "Onest", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Droid Sans", "Helvetica Neue", sans-serif;
  background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTcuNiA5LjJsLS4xLTEuOEg5djMuNGg0LjhDMTMuNiAxMiAxMyAxMyAxMiAxMy42djIuMmgzYTguOCA4LjggMCAwIDAgMi42LTYuNnoiIGZpbGw9IiM0Mjg1RjQiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik05IDE4YzIuNCAwIDQuNS0uOCA2LTIuMmwtMy0yLjJhNS40IDUuNCAwIDAgMS04LTIuOUgxVjEzYTkgOSAwIDAgMCA4IDV6IiBmaWxsPSIjMzRBODUzIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNCAxMC43YTUuNCA1LjQgMCAwIDEgMC0zLjRWNUgxYTkgOSAwIDAgMCAwIDhsMy0yLjN6IiBmaWxsPSIjRkJCQzA1IiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNOSAzLjZjMS4zIDAgMi41LjQgMy40IDEuM0wxNSAyLjNBOSA5IDAgMCAwIDEgNWwzIDIuNGE1LjQgNS40IDAgMCAxIDUtMy43eiIgZmlsbD0iI0VBNDMzNSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTAgMGgxOHYxOEgweiIvPjwvZz48L3N2Zz4=);
  background-color: white;
  background-repeat: no-repeat;
  background-position: 16px 14px;
}
.login-with-google-btn:hover {
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .25);
}
.login-with-google-btn:active {
  background-color: #eee;
}
.login-with-google-btn:focus {
  outline: none;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 2px 4px rgba(0, 0, 0, .25), 0 0 0 3px #c8dafc;
}
.login-with-google-btn:disabled {
  filter: grayscale(100%);
  background-color: #ebebeb;
  box-shadow: 0 -1px 0 rgba(0, 0, 0, .04), 0 1px 1px rgba(0, 0, 0, .25);
  cursor: not-allowed;
}


/*----------------genealogy-scroll----------*/

.genealogy-scroll::-webkit-scrollbar {
  width: 5px;
  height: 8px;
}
.genealogy-scroll::-webkit-scrollbar-track {
  border-radius: 10px;
  background-color: #e4e4e4;
}
.genealogy-scroll::-webkit-scrollbar-thumb {
  background: #212121;
  border-radius: 10px;
  transition: 0.5s;
}
.genealogy-scroll::-webkit-scrollbar-thumb:hover {
  background: #d5b14c;
  transition: 0.5s;
}

/*----------------genealogy-tree----------*/
.genealogy-body{
  white-space: nowrap;
  overflow-y: hidden;
  padding: 50px;
  min-height: 500px;
  padding-top: 10px;
  text-align: center;
}
.genealogy-tree{
display: inline-block;
}
.genealogy-tree ul {
  padding-top: 20px; 
  position: relative;
  padding-left: 0px;
  display: flex;
  justify-content: center;
}
.genealogy-tree li {
  float: left; text-align: center;
  list-style-type: none;
  position: relative;
  padding: 20px 5px 0 5px;
}
.genealogy-tree li::before, .genealogy-tree li::after{
  content: '';
  position: absolute; 
top: 0; 
right: 50%;
  border-top: 2px solid #ccc;
  width: 50%; 
height: 18px;
}
.genealogy-tree li::after{
  right: auto; left: 50%;
  border-left: 2px solid #ccc;
}
.genealogy-tree li:only-child::after, .genealogy-tree li:only-child::before {
  display: none;
}
.genealogy-tree li:only-child{ 
  padding-top: 0;
}
.genealogy-tree li:first-child::before, .genealogy-tree li:last-child::after{
  border: 0 none;
}
.genealogy-tree li:last-child::before{
  border-right: 2px solid #ccc;
  border-radius: 0 5px 0 0;
  -webkit-border-radius: 0 5px 0 0;
  -moz-border-radius: 0 5px 0 0;
}
.genealogy-tree li:first-child::after{
  border-radius: 5px 0 0 0;
  -webkit-border-radius: 5px 0 0 0;
  -moz-border-radius: 5px 0 0 0;
}
.genealogy-tree ul ul::before{
  content: '';
  position: absolute; top: 0; left: 50%;
  border-left: 2px solid #ccc;
  width: 0; height: 20px;
}
.genealogy-tree li a{
  text-decoration: none;
  color: #666;
  font-family: 'Onest', sans-serif;
  font-size: 11px;
  display: inline-block;
  border-radius: 5px;
  -webkit-border-radius: 5px;
  -moz-border-radius: 5px;
}

.genealogy-tree li a:hover+ul li::after, 
.genealogy-tree li a:hover+ul li::before, 
.genealogy-tree li a:hover+ul::before, 
.genealogy-tree li a:hover+ul ul::before{
  border-color:  #fbba00;
}

/*--------------memeber-card-design----------*/
.member-view-box{
  padding:0px 20px;
  text-align: center;
  border-radius: 4px;
  position: relative;
}
.member-image{
  width: 60px;
  position: relative;
}
.member-image img{
  width: 60px;
  height: 60px;
  border-radius: 6px;
background-color :#000;
z-index: 1;
}

#tooltip {
  background: #333;
  color: white;
  font-weight: bold;
  padding: 4px 8px;
  font-size: 13px;
  border-radius: 8px;
  display: none;
}
#tooltip ul {
  margin: 0;
  padding: 5px;
}
#tooltip ul li{
  list-style: none;
}
#arrow,
#arrow::before {
  position: absolute;
  width: 8px;
  height: 8px;
  background: inherit;
}

#arrow {
  visibility: hidden;
}

#arrow::before {
  visibility: visible;
  content: "";
  transform: rotate(45deg);
}
#tooltip[data-popper-placement^="top"] > #arrow {
  bottom: -4px;
}

#tooltip[data-popper-placement^="bottom"] > #arrow {
  top: -4px;
}

#tooltip[data-popper-placement^="left"] > #arrow {
  right: -4px;
}

#tooltip[data-popper-placement^="right"] > #arrow {
  left: -4px;
}

#tooltip[data-show] {
  display: block;
}

div.hr-or {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #eee;
  text-align: center;
  height: 0px;
  line-height: 0px;
}

div.hr-or:before {
  content: 'OR';
  background-color: #fff;
}

div.hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #eee;
  text-align: center;
  height: 0px;
  line-height: 0px;
}

.hr-title {
  background-color: #fff;
}

.action-btn {
  position: absolute;
  bottom: 0;
  right: 0;
}


@media print {
  @page {
    size: 25cm 35.7cm;
    margin: 5mm 5mm 5mm 5mm;
  }
  /* * {
    margin: 0 !important;
    padding: 0 !important;
  } */
  nav, footer, #search-form, #action-btn, #breadcrumb {
    display: none !important; /* Removes these elements from print layout */
    margin: 0 !important;
    padding: 0 !important;
  }
  
  #filter {
    display: none;
  } 
  #head{
    visibility: hidden;
  }
}

.header-h4 {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1.2rem;
  color: rgb(102, 102, 102);
  white-space: nowrap;
  overflow: hidden;
}

.header-h6 {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 1rem;
  color: rgb(102, 102, 102);
  white-space: nowrap;
  overflow: hidden;
}

.dotted-underline {
  text-underline-offset: 3px; /* Adds space between text and underline */
  cursor: pointer; /* Indicates the element is clickable */
  text-transform: uppercase;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgb(102, 102, 102);
  border-bottom: 1px dotted rgb(187, 187, 187);
  white-space: nowrap;
  overflow: hidden;
}

.dotted-s-underline {
  text-underline-offset: 3px; /* Adds space between text and underline */
  cursor: pointer; /* Indicates the element is clickable */
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.6rem;
  color: rgb(102, 102, 102);
  border-bottom: 1px dotted rgb(187, 187, 187);
  white-space: nowrap;
  overflow: hidden;
}

.label-uppercase {
  text-transform: uppercase;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgb(102, 102, 102);
  /* white-space: nowrap; */
  overflow: hidden;
}

.label-b-uppercase {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.9rem;
  color: rgb(102, 102, 102);
  /* white-space: nowrap; */
  overflow: hidden;
}

.label-uppercase.required {
  color: #000000 !important;
  font-weight: 800 !important;
}

.label-uppercase.is-required {
  color: #000000 !important;
  font-weight: 800 !important;
}

.dotted-underline.is-required {
  color: #000000 !important;
  font-weight: 800 !important;
}

.dotted-underline.required {
  color: #000000 !important;
  font-weight: 800 !important;
}

.dotted-underline.required {
  color: #000000 !important;
  font-weight: 800 !important;
}

.is-required::after {
  content: '*';
  margin-left: 2px;
}

.barcode-container {
  text-align: center;
  margin: 10px;
}
.barcode-value {
  position: absolute;
  margin-top: 305px;
  margin-left: 12px;
  font-size: 12px;
  font-family: 'Onest';
}

.barcode-student-container {
  text-align: center;
  margin: 10px;
}
.barcode-student-value {
  position: absolute;
  margin-top: 235px;
  margin-left: 150px;
  font-size: 12px;
  font-family: 'Onest';
}

.barcode-parent-container {
  text-align: center;
  margin: 10px;
}
.barcode-parent-value {
  position: absolute;
  margin-top: 110px;
  margin-left: 858px;
  font-size: 12px;
  font-family: 'Onest';
  color: #000;
}

/* Customize New Enrolled student css */

/* General link styling within waffle */
.ritz .waffle a {
  color: inherit;
}

/* Common waffle cell styles */
.ritz .waffle {
  /* Header cell style */
  .s0 {
    border-bottom: 1px solid #000000;
    background-color: #6fa8dc;
    text-align: center;
    font-weight: bold;
    color: #000000;
    font-family: 'Onest', Arial;
    font-size: 14pt;
    vertical-align: bottom;
    white-space: nowrap;
    direction: ltr;
    padding: 2px 3px;
  }

  /* General cell style with left alignment */
  .s1 {
    border-bottom: 1px solid #000000;
    border-right: 1px solid #000000;
    border-left: 1px solid #000000;
    background-color: #cfe2f3;
    text-align: left;
    font-weight: bold;
    color: #000000;
    font-family: 'Onest', Arial;
    font-size: 10pt;
    vertical-align: bottom;
    white-space: normal;
    overflow: hidden;
    word-wrap: break-word;
    direction: ltr;
    padding: 2px 3px;
  }

  /* Cell with specific dimensions and image scaling */
  .s2 {
    border-bottom: 1px solid #000000;
    border-right: 1px solid #000000;
    background-color: #ffffff;
    text-align: left;
    color: #000000;
    font-family: 'Onest', Arial;
    font-size: 10pt;
    vertical-align: top;
    white-space: normal;
    overflow: hidden;
    word-wrap: break-word;
    direction: ltr;
    padding: 0;
    height: 100%; /* Ensure cell height stretches to rowspan */

    div {
      width: 200px;
      height: 100%; /* Match container to cell height */
    }

    img {
      width: auto; /* Allow image to scale naturally */
      height: 100%; /* Image takes full height of container */
      max-width: 100%; /* Prevent overflow */
      object-fit: contain; /* Maintain aspect ratio */
      object-position: left bottom;
    }
  }

  /* Left-aligned cell */
  .s3 {
    border-bottom: 1px solid #000000;
    border-right: 1px solid #000000;
    border-left: 1px solid #000000;
    background-color: #ffffff;
    text-align: left;
    color: #000000;
    font-family: 'Onest', Arial;
    font-size: 10pt;
    vertical-align: top;
    white-space: normal;
    overflow: hidden;
    word-wrap: break-word;
    direction: ltr;
    padding: 2px 3px;
  }

  /* Left-aligned cell with nowrap */
  .s4 {
    border-bottom: 1px solid #000000;
    border-right: 1px solid #000000;
    background-color: #ffffff;
    text-align: left;
    vertical-align: top;
    color: #000000;
    font-family: 'Onest', Arial;
    font-size: 10pt;
    vertical-align: top;
    white-space: normal;
    word-wrap: break-word;
    direction: ltr;
    padding: 2px 3px;
  }

  /* Top-aligned cell */
  .s5 {
    border-bottom: 1px solid #000000;
    border-right: 1px solid #000000;
    background-color: #ffffff;
    text-align: left;
    color: #000000;
    font-family: 'Onest', Arial;
    font-size: 10pt;
    vertical-align: top;
    white-space: normal;
    overflow: hidden;
    word-wrap: break-word;
    direction: ltr;
    padding: 2px 3px;
  }

  /* Left-aligned cell with Arial font */
  .s6 {
    border-bottom: 1px solid #000000;
    border-right: 1px solid #000000;
    background-color: #ffffff;
    text-align: left;
    color: #000000;
    font-family: 'Onest', Arial;
    font-size: 10pt;
    vertical-align: top;
    white-space: normal;
    overflow: hidden;
    word-wrap: break-word;
    direction: ltr;
    padding: 2px 3px;
  }

  /* Top-aligned cell with Helvetica Neue */
  .s7 {
    border-bottom: 1px solid #000000;
    border-right: 1px solid #000000;
    border-left: 1px solid #000000;
    background-color: #ffffff;
    text-align: left;
    color: #000000;
    font-family: 'Onest', Arial;
    font-size: 10pt;
    vertical-align: top;
    white-space: normal;
    overflow: hidden;
    word-wrap: break-word;
    direction: ltr;
    padding: 2px 3px;
  }

  /* Centered cell */
  .s8 {
    border-bottom: 1px solid #000000;
    border-right: 1px solid #000000;
    background-color: #ffffff;
    text-align: center;
    color: #000000;
    font-family: 'Onest', Arial;
    font-size: 10pt;
    vertical-align: middle;
    white-space: normal;
    overflow: hidden;
    word-wrap: break-word;
    direction: ltr;
    padding: 2px 3px;
  }

  /* Small italicized bold cell */
  .s9 {
    border-bottom: 1px solid #000000;
    border-right: 1px solid #000000;
    background-color: #ffffff;
    text-align: left;
    font-weight: bold;
    font-style: italic;
    color: #000000;
    font-family: 'Onest', Arial;
    font-size: 7pt;
    vertical-align: bottom;
    white-space: normal;
    overflow: hidden;
    word-wrap: break-word;
    direction: ltr;
    padding: 2px 3px;
  }
}

/* Column width definitions */
#1358672295C0 { width: 80px; }
#1358672295C1 { width: 200px; }
#1358672295C2 { width: 80px; }
#1358672295C3 { width: 200px; }
#1358672295C4 { width: 80px; }
#1358672295C5 { width: 200px; }

/* Table row and header styling */
.waffle tbody tr {
  height: 20px;
}

.row-headers-background {
  height: 20px;
}

.row-header-wrapper {
  line-height: 20px;
}

.student-photo-container {
  width: 100%; /* Use full cell width (250px as per table column) */
  height: 100px; /* Match 4 rows (4 * 20px) */
  display: flex;
  align-items: left; /* Center image vertically */
  justify-content: start; /* Center image horizontally */
  padding-top: 0px; /* Optional padding around image */
}
.student-photo{
  max-height: 100px; /* Cap at cell height to prevent overflow */
  max-width: 100%; /* Fit within container width */
  width: auto; /* Maintain aspect ratio */
  height: auto; /* Use natural height */
  object-fit: contain; /* Preserve aspect ratio */  
}

.parent-photo{
  max-height:220px; /* Cap at cell height to prevent overflow */
  max-width: 100%; /* Fit within container width */
  width: auto; /* Maintain aspect ratio */
  height: auto; /* Use natural height */
  object-fit: contain; /* Preserve aspect ratio */  
}

.fixed-image-td {
  width: 125px; /* Set your desired fixed width */
}

.fixed-lang-td {
  width: 225px; /* Set your desired fixed width */
}

/* app/assets/stylesheets/application.css */
.quill-editor {
  border: 1px solid #ced4da;
  background: #fff;
  overflow: hidden;
}

.quill-editor .ql-toolbar {
  border-bottom: 1px solid #ced4da;
  background: #f8f9fa;
}

.quill-editor .ql-container {
  background: white;
}

.quill-editor .ql-editor {
  min-height: inherit;
  line-height: 1.5;
  padding: 12px 14px;
  font-size: 16px;           /* ← YOUR DEFAULT FONT SIZE */
  font-family: inherit;      /* Optional: respect app font */
}

/* -------------------------------------------------
   QUILL ERROR HIGHLIGHT – works with field_with_errors
   ------------------------------------------------- */

/* 1. Outer wrapper – thick red border + glow */
.field_with_errors .quill-editor {
  border: 2px solid #dc3545 !important;               /* Bootstrap danger */
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, .25) !important;
  border-radius: .375rem !important;
}

/* 2. Toolbar – make its bottom line red */
.field_with_errors .quill-editor .ql-toolbar {
  border-bottom: 1px solid #dc3545 !important;
  background: #fdf5f5 !important;                     /* light red tint */
}

/* 3. Editor container – top border red */
.field_with_errors .quill-editor .ql-container {
  border-top: 1px solid #dc3545 !important;
}

/* 4. Optional: focus ring inside the editor */
.field_with_errors .quill-editor .ql-editor:focus {
  outline: 2px solid #dc3545 !important;
  outline-offset: -2px !important;
}

/* Show the message in red */
.invalid-feedback {
  color: #dc3545;
  font-size: .775rem;
}

.w-20 { width: 20% !important; }
.min-w-200px { min-width: 200px !important; }

.card-image-container {
  height: 180px;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-image-placeholder {
  object-fit: contain;
  background-color: #f8f9fa;
}


/* Perfectly clean & fully rounded "Show/Hide Columns" button */
.bootstrap-table .fixed-table-toolbar .columns button.no-caret {
  /* Force full control */
  all: unset !important;                    /* Remove all Bootstrap button styles */
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  
  /* Size & shape */
  width: 40px !important;
  height: 36px !important;
  border-radius: 8px !important;          /* Perfect pill shape */
  /* Or use 8px if you prefer softer corners */
  /* border-radius: 8px !important; */

  /* Colors & border */
  background-color: #f8f9fa !important;
  border: 1px solid #dee2e6 !important;
  color: #495057 !important;

  /* Hover state */
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.bootstrap-table .fixed-table-toolbar .columns button.no-caret:hover {
  background-color: #e9ecef !important;
  border-color: #c6c9cc !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.bootstrap-table .fixed-table-toolbar .columns button.no-caret:active {
  transform: translateY(0) !important;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.1) !important;
}

/* Make sure the icon is perfectly centered */
.bootstrap-table .fixed-table-toolbar .columns button.no-caret i {
  font-size: 1.15rem !important;
}

/* Final safety: kill the dropdown arrow forever */
.bootstrap-table .fixed-table-toolbar .columns button::after {
  display: none !important;
}

/* TNA css */

/* ── Status badges ──────────────────────────────────────────────────────────── */
.status-badge {
  display: inline-block; padding: 3px 10px; border-radius: var(--radius-full);
  font-size: 12px; font-weight: 500; letter-spacing: .02em;
}
.status-badge--draft     { background: var(--gray-100); color: var(--gray-600); }
.status-badge--published { background: var(--tna-green-light); color: var(--tna-green-dark); }
.status-badge--archived  { background: var(--amber-light); color: #854F0B; }
 
/* ── Flash messages ─────────────────────────────────────────────────────────── */
#flash-container { position: fixed; top: 70px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.flash-message { background: white; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200); padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-width: 280px; max-width: 420px; pointer-events: all; opacity: 0; transform: translateX(20px); transition: all 0.3s ease; }
.flash-message--visible { opacity: 1; transform: translateX(0); }
.flash-message--hiding  { opacity: 0; transform: translateX(20px); }
.flash-inner { display: flex; align-items: center; gap: 10px; }
.flash-notice .flash-icon::before { content: "✓"; color: var(--tna-green); }
.flash-alert  .flash-icon::before { content: "!"; color: var(--red); }
.flash-close { background: none; border: none; font-size: 18px; cursor: pointer; color: var(--gray-400); line-height: 1; padding: 2px; }
 
/* ── Builder essentials (still used) ───────────────────────────────────────── */
.save-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray-400); }
.save-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--tna-green); }
[data-state="unsaved"] .save-dot { background: var(--amber); }
[data-state="error"]   .save-dot { background: var(--red); }
[data-state="saving"]  .save-dot { animation: pulse 1s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
 
.questions-canvas { flex: 0 0 auto; overflow: visible; padding: 20px; }
.canvas-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; color: var(--gray-400); text-align: center; border: 2px dashed var(--gray-300); border-radius: var(--radius-xl); margin-top: 20px; }
.canvas-empty-icon svg { width: 52px; height: 52px; margin-bottom: 12px; }
.canvas-empty-text { font-size: 14px; }
 
/* Section divider */
.builder-section { display: flex; align-items: center; gap: 12px; background: white; border: 1px solid var(--gray-200); border-left: 3px solid var(--gray-400); border-radius: var(--radius-md); padding: 12px 16px; margin-bottom: 10px; }
.section-body { flex: 1; min-width: 0; }
.section-label { font-size: 10px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.section-title-input { flex: 1; border: none; outline: none; font-size: 14px; font-weight: 600; color: var(--gray-700); background: transparent; border-bottom: 1px dashed transparent; }
.section-title-input:focus { border-bottom-color: var(--gray-300); }
.builder-section .section-title-input.quill-editor { width: 100%; max-width: 100%; border-radius: var(--radius-md); }
.builder-section .section-title-input .ql-toolbar,
.builder-section .section-title-input .ql-container,
.builder-section .section-title-input .ql-editor { width: 100%; }
.builder-section .section-title-input .ql-editor { min-height: 56px; font-size: 14px; }
 
/* Question cards */
.question-card { position: relative; background: white; border: 1.5px solid var(--gray-200); border-radius: var(--radius-xl); margin-bottom: 10px; cursor: pointer; transition: all var(--transition); padding-left: 8px; }
.question-card:hover { border-color: var(--tna-green-mid); box-shadow: var(--shadow-sm); }
.question-card--active { border-color: var(--tna-green); box-shadow: 0 0 0 3px rgba(29,158,117,.12); }
.drag-handle { color: var(--gray-300); font-size: 18px; cursor: grab; padding: 6px 4px; flex-shrink: 0; }
.drag-handle:active { cursor: grabbing; }
.question-card-inner { padding: 16px 16px 12px 8px; }
.question-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.question-type-badge { font-size: 11px; padding: 3px 10px; border-radius: var(--radius-full); font-weight: 500; display: flex; align-items: center; gap: 5px; }
.badge--short,.badge--long  { background: var(--blue-light); color: var(--blue); }
.badge--radio,.badge--checkbox,.badge--dropdown { background: var(--tna-green-light); color: var(--tna-green-dark); }
.badge--scale  { background: #FEF3C7; color: #92400E; }
.badge--matrix { background: #EDE9FE; color: #5B21B6; }
.badge--date   { background: #DBEAFE; color: #1E40AF; }
.badge--file   { background: var(--gray-100); color: var(--gray-600); }
.required-badge { font-size: 11px; color: var(--red); margin-left: auto; }
.question-label { font-size: 15px; color: var(--gray-800); line-height: 1.4; }
.question-label-input { width: 100%; border: none; outline: none; font-size: 15px; color: var(--gray-800); line-height: 1.4; background: transparent; font-family: var(--font-body); border-bottom: 1px dashed transparent; }
.question-label-input:focus { border-bottom-color: var(--gray-300); }
.question-card-actions { display: flex; gap: 4px; justify-content: flex-end; padding: 8px 12px; border-top: 1px solid var(--gray-100); }
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--gray-500);
  border-radius: var(--radius-md);
  cursor: pointer;
}
.icon-btn:hover { background: var(--gray-100); color: var(--gray-700); }
.icon-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(29,158,117,.15); }
.icon-btn--danger { color: #B42318; }
.icon-btn--danger:hover { background: #FEE4E2; color: #912018; }
 
/* Question previews */
.preview-field { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-md); padding: 10px 14px; font-size: 13px; color: var(--gray-400); margin-top: 8px; }
.preview-field--textarea { min-height: 64px; }
.preview-field--select,.preview-field--date { display: flex; align-items: center; justify-content: space-between; }
.preview-option { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 13px; color: var(--gray-600); }
.preview-radio { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--gray-400); flex-shrink: 0; }
.preview-checkbox { width: 16px; height: 16px; border-radius: 3px; border: 1.5px solid var(--gray-400); flex-shrink: 0; }
.preview-more { font-size: 12px; color: var(--gray-400); font-style: italic; margin-top: 4px; }
.preview-scale { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.scale-pills { display: flex; gap: 6px; }
.scale-pill { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--gray-500); }
.scale-label-text { font-size: 12px; color: var(--gray-400); }
.preview-file-drop { border: 1.5px dashed var(--gray-300); border-radius: var(--radius-md); padding: 20px; text-align: center; margin-top: 8px; color: var(--gray-400); font-size: 13px; }
.matrix-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.matrix-table th { padding: 6px 10px; color: var(--gray-500); font-weight: 500; text-align: center; }
.matrix-table td { padding: 5px 10px; }
.matrix-row-label { color: var(--gray-600); }
.matrix-cell { text-align: center; }
 
/* Inspector panel */
.inspector-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 200px; color: var(--gray-400); font-size: 14px; text-align: center; }
.inspector-field { margin-bottom: 16px; }
.inspector-label { display: block; font-size: 12px; font-weight: 600; color: var(--gray-500); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.inspector-input { width: 100%; padding: 8px 10px; border: 1px solid var(--gray-300); border-radius: var(--radius-md); font-size: 13px; outline: none; }
.inspector-input:focus { border-color: var(--tna-green); box-shadow: 0 0 0 3px rgba(29,158,117,.1); }

/* Keep Question Settings visible while canvas scrolls (desktop) */
@media (min-width: 992px) {
  .tna-builder-canvas-scroll {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 10px;
  }

  .tna-builder-inspector-card {
    position: sticky;
    top: 12px;
    max-height: calc(100vh - 24px);
  }

  .tna-builder-inspector-card .card-body {
    max-height: calc(100vh - 26px);
    overflow-y: auto;
  }
}
 
/* ── Public form (respond page) ─────────────────────────────────────────────── */
.form-respond-layout { max-width: 720px; margin: 0 auto; padding: 40px 24px; }
.progress-bar-wrap { margin-bottom: 24px; }
.progress-bar { height: 6px; background: var(--gray-200); border-radius: var(--radius-full); overflow: hidden; }
.progress-fill { height: 100%; background: var(--tna-green); transition: width 0.4s ease; border-radius: var(--radius-full); }
.progress-text { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--gray-400); margin-top: 6px; }
.progress-count { margin-left: auto; }
 
.form-respond-card { background: white; border-radius: var(--radius-xl); border: 1px solid var(--gray-200); box-shadow: var(--shadow-md); overflow: hidden; }
.respond-form-header { padding: 28px 32px 20px; border-bottom: 4px solid var(--tna-green); background: white; }
.respond-form-title  { font-family: var(--font-display); font-size: 26px; color: var(--gray-900); margin-bottom: 8px; }
.respond-form-desc   { font-size: 15px; color: var(--gray-500); line-height: 1.6; }
 
.respond-section-header { padding: 20px 32px 8px; border-top: 1px solid var(--gray-100); background: var(--gray-50); }
.respond-section-title  { font-size: 17px; font-weight: 600; color: var(--gray-800); }
.respond-section-desc   { font-size: 14px; color: var(--gray-500); margin-top: 4px; }
 
.respond-question { padding: 24px 32px; border-bottom: 1px solid var(--gray-100); transition: background var(--transition); }
.respond-question:hover { background: var(--gray-50); }
.respond-question.question--error { background: #FFF5F5; }
.question-label-row { margin-bottom: 8px; }
.respond-question-label { font-size: 15px; font-weight: 500; color: var(--gray-800); line-height: 1.4; }
.required-asterisk { color: var(--red); font-size: 14px; margin-left: 3px; text-decoration: none; }
.question-hint  { font-size: 13px; color: var(--gray-400); margin-bottom: 12px; margin-top: 4px; }
.question-error { font-size: 13px; color: var(--red); margin-top: 8px; display: flex; align-items: center; gap: 5px; }
.question-error::before { content: "!"; width: 16px; height: 16px; background: var(--red); color: white; border-radius: 50%; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
 
/* Form field inputs */
.field-input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-md); font-size: 14px; font-family: var(--font-body); outline: none; transition: border-color var(--transition), box-shadow var(--transition); background: white; color: var(--gray-800); }
.field-input:focus { border-color: var(--tna-green); box-shadow: 0 0 0 3px rgba(29,158,117,.12); }
.field-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }
.field-date { width: auto; min-width: 200px; }
.field-select-wrap { position: relative; display: inline-block; width: 100%; }
.field-select { width: 100%; padding: 10px 36px 10px 14px; border: 1.5px solid var(--gray-300); border-radius: var(--radius-md); font-size: 14px; font-family: var(--font-body); outline: none; appearance: none; background: white; cursor: pointer; }
.field-select:focus { border-color: var(--tna-green); box-shadow: 0 0 0 3px rgba(29,158,117,.12); }
.select-chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--gray-400); pointer-events: none; }
 
/* Option inputs (radio/checkbox) */
.field-options { display: flex; flex-direction: column; gap: 6px; }
.option-label { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition); }
.option-label:hover { background: var(--tna-green-light); border-color: var(--tna-green-mid); }
.option-input { display: none; }
.option-mark { width: 18px; height: 18px; border: 2px solid var(--gray-400); border-radius: 50%; flex-shrink: 0; transition: all var(--transition); }
.option-mark--checkbox { border-radius: 4px; }
.option-input:checked ~ .option-mark { background: var(--tna-green); border-color: var(--tna-green); }
.option-input:checked ~ .option-mark::after { content: ""; display: block; width: 6px; height: 6px; background: white; border-radius: 50%; margin: 4px auto; }
.option-input[type=checkbox]:checked ~ .option-mark--checkbox::after { content: "✓"; color: white; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0; width: 100%; height: 100%; border-radius: 3px; }
.option-input:checked + * + .option-text { color: var(--tna-green-dark); font-weight: 500; }
.option-label:has(.option-input:checked) { background: var(--tna-green-light); border-color: var(--tna-green); }
.option-text { font-size: 14px; color: var(--gray-700); }
 
/* Scale input */
.field-scale { margin-top: 4px; }
.scale-row { display: grid; grid-template-columns: minmax(48px, auto) 1fr minmax(48px, auto); align-items: center; gap: 12px; }
.scale-end-label { font-size: 12px; color: var(--gray-500); white-space: nowrap; }
.scale-end-label:first-child { text-align: left; }
.scale-end-label:last-child { text-align: right; }
.scale-options { display: flex; gap: 8px; flex-wrap: nowrap; justify-content: center; }
.scale-label-item { cursor: pointer; }
.scale-radio { display: none; }
.scale-circle { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--gray-300); display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 500; color: var(--gray-500); transition: all var(--transition); }
.scale-circle:hover { border-color: #60A5FA; background: #EFF6FF; color: #1D4ED8; }
.scale-radio:checked + .scale-circle { background: #2563EB; border-color: #2563EB; color: white; }
.scale-circle--selected { background: var(--tna-green); border-color: var(--tna-green); color: white; }
.scale-circle--filled   { background: var(--tna-green-light); border-color: var(--tna-green-mid); color: var(--tna-green-dark); }

@media (max-width: 640px) {
  .scale-row { grid-template-columns: 1fr; gap: 8px; }
  .scale-options { justify-content: flex-start; flex-wrap: wrap; }
  .scale-end-label:last-child { text-align: left; }
}
 
/* Matrix response */
.matrix-response-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.matrix-response-table th,.matrix-response-table td { padding: 10px 12px; }
.matrix-col-header { text-align: center; font-size: 13px; font-weight: 500; color: var(--gray-500); border-bottom: 2px solid var(--gray-200); }
.matrix-row-label  { font-size: 14px; color: var(--gray-700); border-bottom: 1px solid var(--gray-100); }
.matrix-cell { text-align: center; border-bottom: 1px solid var(--gray-100); }
.matrix-check { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; min-height: 24px; }
.matrix-radio { position: static; float: none; margin: 0; width: 16px; height: 16px; cursor: pointer; }
.matrix-radio-label { cursor: pointer; display: inline-flex; align-items: center; margin: 0; color: var(--gray-700); font-size: 13px; }
 
/* File upload */
.file-drop-zone { border: 2px dashed var(--gray-300); border-radius: var(--radius-lg); padding: 32px 20px; text-align: center; cursor: pointer; transition: all var(--transition); }
.file-drop-zone:hover,.file-drop-zone--over { border-color: var(--tna-green); background: var(--tna-green-light); }
.file-drop-icon { font-size: 28px; margin-bottom: 8px; }
.file-drop-text { font-size: 14px; color: var(--gray-600); }
.file-drop-text strong { color: var(--tna-green); }
.file-drop-hint { font-size: 12px; color: var(--gray-400); margin-top: 4px; }
.file-input-hidden { display: none; }
.file-preview { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-md); }
.file-preview-name { flex: 1; font-size: 13px; color: var(--gray-700); }
 
/* Submit row */
.respond-submit-row { padding: 24px 32px; background: var(--gray-50); border-top: 1px solid var(--gray-100); }
.respondent-email-field { margin-bottom: 20px; }
.field-label { display: block; font-size: 13px; font-weight: 500; color: var(--gray-600); margin-bottom: 6px; }
.submit-actions { display: flex; align-items: center; gap: 16px; }
.submit-note { font-size: 12px; color: var(--gray-400); }
 
/* ── Thank you page ──────────────────────────────────────────────────────────── */
.thankyou-layout { max-width: 500px; margin: 80px auto; padding: 0 24px; }
.thankyou-card   { background: white; border-radius: var(--radius-xl); border: 1px solid var(--gray-200); box-shadow: var(--shadow-lg); padding: 48px 40px; text-align: center; }
.thankyou-icon svg { width: 72px; height: 72px; margin-bottom: 20px; }
.thankyou-title   { font-family: var(--font-display); font-size: 32px; margin-bottom: 12px; }
.thankyou-message { font-size: 15px; color: var(--gray-500); line-height: 1.7; margin-bottom: 28px; }
.thankyou-actions { display: flex; gap: 12px; justify-content: center; }
 
/* ── Responses / Analytics ───────────────────────────────────────────────────── */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 16px 20px; }
.stat-card-value { font-family: var(--font-display); font-size: 28px; color: var(--gray-900); }
.stat-card-label { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.table-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th { padding: 12px 20px; text-align: left; font-size: 12px; font-weight: 600; color: var(--gray-500); border-bottom: 2px solid var(--gray-200); text-transform: uppercase; letter-spacing: .04em; background: var(--gray-50); }
.data-table td { padding: 14px 20px; border-bottom: 1px solid var(--gray-100); }
.data-table tr:last-child td { border-bottom: none; }
.text-right { text-align: right; }
.td-respondent { display: flex; align-items: center; gap: 10px; }
.respondent-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--tna-green-light); color: var(--tna-green-dark); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.respondent-info { display: flex; flex-direction: column; }
.respondent-name  { font-weight: 500; font-size: 14px; }
.respondent-email { font-size: 12px; color: var(--gray-500); }
 
/* Analytics cards */
.analytics-overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.overview-stat { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 20px; text-align: center; }
.overview-value { font-family: var(--font-display); font-size: 36px; color: var(--tna-green); }
.overview-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; }
.analytics-questions { display: flex; flex-direction: column; gap: 16px; }
.analytics-question-card { background: white; border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 20px 24px; }
.aq-header { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.aq-type-badge { font-size: 11px; padding: 3px 10px; background: var(--gray-100); color: var(--gray-500); border-radius: var(--radius-full); white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.aq-label { flex: 1; font-size: 15px; font-weight: 500; color: var(--gray-800); }
.aq-count { font-size: 12px; color: var(--gray-400); white-space: nowrap; }
.aq-no-data { font-size: 14px; color: var(--gray-400); font-style: italic; text-align: center; padding: 20px; }
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-label { width: 160px; font-size: 13px; color: var(--gray-600); flex-shrink: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { flex: 1; height: 28px; background: var(--gray-100); border-radius: var(--radius-md); overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--tna-green), var(--tna-green-mid)); border-radius: var(--radius-md); transition: width 0.6s ease; min-width: 2px; }
.bar-count { font-size: 12px; color: var(--gray-500); width: 80px; text-align: right; flex-shrink: 0; }
.scale-summary { display: flex; gap: 24px; align-items: flex-start; }
.scale-avg { text-align: center; background: var(--tna-green-light); border-radius: var(--radius-lg); padding: 16px 24px; }
.scale-avg-value { font-family: var(--font-display); font-size: 40px; color: var(--tna-green-dark); }
.scale-avg-label { font-size: 12px; color: var(--tna-green-dark); margin-top: 2px; }
.text-responses { display: flex; flex-direction: column; gap: 8px; }
.text-response-item { font-size: 14px; color: var(--gray-700); padding: 10px 14px; background: var(--gray-50); border-left: 3px solid var(--tna-green-mid); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.text-responses-more { font-size: 13px; color: var(--gray-400); font-style: italic; margin-top: 4px; }
 
/* ── Breadcrumb ──────────────────────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--gray-400); margin-bottom: 8px; }
.breadcrumb-link { color: var(--gray-500); }
.breadcrumb-link:hover { color: var(--tna-green); text-decoration: none; }
.breadcrumb-sep { color: var(--gray-300); }
 
/* ── Footer ──────────────────────────────────────────────────────────────────── */
footer.site-footer { border-top: 1px solid var(--gray-200); background: white; padding: 20px 24px; text-align: center; font-size: 13px; color: var(--gray-400); margin-top: auto; }


/* app/assets/stylesheets/tna_forms_new.css
   Append this block to application.css
   ─────────────────────────────────────────────────────────────────────────── */

/* ── New form page layout ─────────────────────────────────────────────────── */
.new-form-page { min-height: calc(100vh - 56px); background: var(--gray-50); padding: 32px 24px 60px; }
.new-form-container { max-width: 960px; margin: 0 auto; }

.new-form-page-header { margin-bottom: 24px; }
.new-form-heading { font-family: var(--font-display); font-size: 26px; font-weight: 400; color: var(--gray-900); margin-top: 10px; }

.new-form-columns { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: start; }
@media (max-width: 768px) { .new-form-columns { grid-template-columns: 1fr; } }

/* ── Section cards ──────────────────────────────────────────────────────────── */
.form-section-card { background: white; border: 0.5px solid var(--gray-200); border-radius: var(--border-radius-xl, 16px); margin-bottom: 16px; overflow: hidden; }
.form-section-card-header { display: flex; align-items: center; gap: 10px; padding: 16px 20px 14px; border-bottom: 0.5px solid var(--gray-100); }
.form-section-card-icon { width: 32px; height: 32px; background: var(--tna-green-light, #E1F5EE); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--tna-green, #1D9E75); flex-shrink: 0; }
.form-section-card-title { font-size: 15px; font-weight: 600; color: var(--gray-800); flex: 1; }
.form-section-card-note { font-size: 12px; color: var(--gray-400); }
.form-section-card-body { padding: 20px; }

/* ── Field groups ───────────────────────────────────────────────────────────── */
.field-group { margin-bottom: 20px; }
.field-group:last-child { margin-bottom: 0; }
.field-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.field-label-optional { font-size: 12px; font-weight: 400; color: var(--gray-400); margin-left: 4px; }
.required-asterisk { color: var(--red, #E24B4A); font-size: 13px; margin-left: 2px; text-decoration: none; }
.field-hint { font-size: 12px; color: var(--gray-400); margin-top: 5px; line-height: 1.5; }
.field-error { font-size: 12px; color: var(--red, #E24B4A); margin-top: 5px; display: flex; align-items: center; gap: 4px; }
.field-error::before { content: "!"; width: 14px; height: 14px; background: var(--red, #E24B4A); color: white; border-radius: 50%; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.field-input--error { border-color: var(--red, #E24B4A) !important; }
.field-input--error:focus { box-shadow: 0 0 0 3px rgba(226,75,74,.12) !important; }

/* ── Start method options ───────────────────────────────────────────────────── */
.start-method-options { display: flex; flex-direction: column; gap: 8px; }
.start-method-radio { display: none; }
.start-method-option { border-radius: var(--border-radius-lg, 12px); border: 1.5px solid var(--gray-200); transition: border-color .15s, background .15s; cursor: pointer; }
.start-method-option:hover { border-color: var(--tna-green-mid, #9FE1CB); background: var(--tna-green-light, #E1F5EE); }
.start-method-option:has(.start-method-radio:checked) { border-color: var(--tna-green, #1D9E75); background: var(--tna-green-light, #E1F5EE); box-shadow: 0 0 0 3px rgba(29,158,117,.1); }
.start-method-label { display: flex; align-items: center; gap: 14px; padding: 14px 16px; cursor: pointer; width: 100%; }
.start-method-icon { width: 44px; height: 44px; border-radius: 10px; background: white; border: 0.5px solid var(--gray-200); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--gray-500); }
.start-method-option:has(.start-method-radio:checked) .start-method-icon { border-color: var(--tna-green-mid, #9FE1CB); color: var(--tna-green, #1D9E75); }
.start-method-body { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.start-method-name { font-size: 14px; font-weight: 600; color: var(--gray-800); display: flex; align-items: center; gap: 8px; }
.start-method-desc { font-size: 12px; color: var(--gray-500); line-height: 1.4; }
.template-badge { background: #FEF3C7; color: #92400E; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 20px; letter-spacing: .03em; text-transform: uppercase; }

/* ── Settings rows ──────────────────────────────────────────────────────────── */
.settings-rows { display: flex; flex-direction: column; gap: 0; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 0.5px solid var(--gray-100); }
.setting-row:last-child { border-bottom: none; padding-bottom: 0; }
.setting-row-text { display: flex; flex-direction: column; gap: 2px; }
.setting-row-label { font-size: 14px; font-weight: 500; color: var(--gray-700); }
.setting-row-hint { font-size: 12px; color: var(--gray-400); }

/* Toggle switch */
.toggle-checkbox { display: none; }
.toggle-label { width: 40px; height: 22px; background: var(--gray-300); border-radius: 11px; display: flex; align-items: center; padding: 2px; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.toggle-checkbox:checked + .toggle-label { background: var(--tna-green, #1D9E75); }
.toggle-thumb { width: 18px; height: 18px; border-radius: 50%; background: white; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.toggle-checkbox:checked + .toggle-label .toggle-thumb { transform: translateX(18px); }

/* ── Error summary ─────────────────────────────────────────────────────────── */
.error-summary { background: #FFF5F5; border: 1px solid #FECACA; border-radius: var(--border-radius-lg, 12px); padding: 14px 16px; margin-bottom: 20px; }
.error-summary-title { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--red, #E24B4A); margin-bottom: 8px; }
.error-list { margin-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.error-list li { font-size: 13px; color: #B91C1C; }

/* ── Submit actions ────────────────────────────────────────────────────────── */
.new-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 4px; }

/* ── Right sidebar ─────────────────────────────────────────────────────────── */
.new-form-sidebar { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 72px; }
.help-card { background: white; border: 0.5px solid var(--gray-200); border-radius: var(--border-radius-lg, 12px); padding: 16px; }
.help-card-header { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 14px; }

/* Steps list */
.help-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.help-step { display: flex; align-items: flex-start; gap: 10px; }
.help-step-num { width: 20px; height: 20px; border-radius: 50%; background: var(--tna-green-light, #E1F5EE); color: var(--tna-green, #1D9E75); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.help-step-text { font-size: 13px; color: var(--gray-600); line-height: 1.5; }

/* Question types list */
.question-type-list { display: flex; flex-direction: column; gap: 6px; }
.question-type-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gray-600); }
.question-type-icon { font-size: 14px; width: 20px; text-align: center; }
