@charset "utf-8";
.sortable-placeholder {
    display: table-row-group;
    background: #f0f0f0;
    height: 50px; /* approximate height of tbody */
    border: 1px dashed #999;
}

.hidden {
    display: none;
}

.percent-normal {
  background: #9462a4;
  color: #fff;
}

.percent-over {
  background: #f15274;
  color: #fff;
}

.reply {
  display: flex;
  justify-content: right;
  align-items: right;    
  padding-top: 5px;
}

.my-photo img {
    width: 250px;
    height: 170px;
    border: 1px solid #ccc;
    object-fit: cover; 
}

.photo-table table, th, td {
    border: 1px solid #ccc;
    border-collapse: collapse;
}

thisImg {
    width: 180px;
    height: 120px;
	margin-right: 10px;
    border: 1px solid #ccc;
    object-fit: cover; 	
}

table, td {
  border: 1px solid;
  padding: 5px;
  border-color:#fff;
  width: 100%;	
}

th {border: 1px solid;
  padding: 2px 7px;
  border-color:#ccc;
}

td {line-height: 1;
}

.center-cell {
  text-align: center;
}

.center-icon {
  text-align: center;
	width: 20%;
}

.right-cell {
  text-align: right;
}

.text-left {
  text-align: left;	
	padding: 3px 15px;
}

.right-cell2 {
  text-align: right;
  background-color: #2a3744; 
  color: #fff;"	
}

.left-cell {
  text-align: left;
}

.table-container {
  margin: 15px 20px; 
  width: auto; 
  border: none;
}

.menu-container {
  margin: 0px 20px; 
  width: auto; 
  border: none;
}

.table-slide {
  max-width: 100%;
  overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;	
}

td, th {
    border: 1px solid #ccc; 
}

td select, td input {
    display: block;
    width: 100%;
    margin: 0;
}

.table-box {	
  overflow-x: auto; 
  -webkit-overflow-scrolling: touch; 
  width: 100%;
}

.table-inside-borders {
  border-collapse: collapse; 
  border-style: hidden; 
}

.table-inside-borders td, .table-inside-borders th {
  border: 1px solid #fff; 
}

.table-inside-borders tr {
  cursor: pointer;
}

.table-inside-borders tbody tr:hover {
  background-color: #f5f5f5; 
  cursor: pointer;
}

.table-inside-borders tbody tr.selected td {
  background-color: #0d3d3f; 
  color: white;
}

mytable {
  width: 100%;
  min-width: 300px; 
  border-collapse: collapse;
  border-color:#ccc; 
  background:#fff;
}

.row-group {
    cursor: grab;
	min-height: 50px; /* ensures titles don't collapse */
    transition: transform 220ms ease;
}

.row-group.dragging {
    opacity: 0.5;
    cursor: grabbing;
}

.empty-entry tr {
    background-color: #f3d796; 
    color: #555;       
    text-align: left;
}

.empty-entry-row {
    min-height: 40px;  
    line-height: 1.5;
    text-align: left;
    color: #999;
}	
	
.empty-entry {
    min-height: 50px; /* ensures titles don't collapse */
}
.icon-cell {
  text-align: center; 
  vertical-align: middle; 
  color: #FF5733;
}

#mixture, #notes {
  white-space: pre-line;
}

.form-row {
    display: flex;
    gap: 10px;
	margin-bottom: 3px;
}

.form-row .field {
    flex: 1;
    min-width: 0;
}

.preview-box {
  display: block;
  justify-content: center; 
  align-items: center;  
  height: 194px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  padding: 0 10px;
  margin: 5px 0 10px 0;
  overflow: hidden; 
}

.file-input {
  display: none;
}

.mybtn {
  display: flex;
  justify-content: center; 
  align-items: center;    
  background: #7092BE;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  height: 40px;
  width: 100%;
}

.mybtn2 {
  display: flex;
  justify-content: center; 
  align-items: center;    
  background: #7092be;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  height: 40px;
  margin: 10px 0;
  width: 100%;
}

.mybtn:hover { background: #3c5a84; }
.mybtn:disabled { background: #c3c3c3; }


.ingredient-box {
  width: 100%;
  border: 1px solid #ccc;
  box-sizing: border-box;
  background: #EDF0F0;
  color: #000;
  border-radius: 4px;
  height: 36px;
  margin-bottom: 5px;
  font-weight: bold;
  display: flex;
  justify-content: center; /* left-right */
  align-items: center;     /* top-bottom */
}

.max-box {
  width:10%;
  border: 1px solid #ccc;
  box-sizing: border-box;
  align-text: center;
  background: #EDF0F0;
  color: #000;
  border-radius: 4px;	
  height: 36px;
  margin-bottom:5px;
}

.image-box {
  width: 100%;
  height: auto;
  border: 1px solid #ccc;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  margin: 10px 0px;
  padding: 10px;
  overflow: hidden; 
}

canvas {
  display: block;
  background: #fff;
}

#cropWrapper {
  position: relative;
  width: 100%;
  max-width: 780px;
}

#resizedCanvas {
  width: 100%;
  display: block;
  cursor: grab;
}

#resizedCanvas:active {
  cursor: grabbing;
}

#cropWrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px dashed rgba(255,255,255,0.8);
  pointer-events: none;
  box-sizing: border-box;
}

#uploadedPreview img {
  transition: transform 0.2s ease;
}
#uploadedPreview img:hover {
  transform: scale(1.05);
}

.hidden-panel {
  width: 100%;
  min-height: 400px; /* whatever height you want */
  background: #fff;
  border: 1px solid #ccc;
  padding: 20px;
  position: relative;
}

.hidden-panel .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}

.results-box {
    height: 311px;
	overflow-y: auto;
    padding: 0px;
}

.results-box tbody tr.selected td {
    background-color: indianred; 
    color: white;
}

.results-box thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #2a3744;
  color: white;
}

.nutrition-box {
    display: flex;
    width: 100%;
    box-sizing: border-box;	
}

.top-row {
    display: flex;
    width: 100%;
	margin-top:4px;
    box-sizing: border-box;
}

.top-row select {
    display: flex;
    width: 50%;
    margin-right: 10px;
    box-sizing: border-box;
}

.top-row input {
    display: flex;
    width: 50%;
    box-sizing: border-box;
}

.bottom-row {
    display: flex;
    width: 100%;
	gap: 10px;
    box-sizing: border-box;
}

.bottom-row button {
    display: flex;
    width: 20%;
    box-sizing: border-box;
}

.bottom-row input {
    display: flex;
    width: 60%;
    box-sizing: border-box;
}

.undertable {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

.undertable input {
    display: flex;
    width: 100%;
    box-sizing: border-box;
}

.measurement-row {
    display: flex;
    gap: 10px;  
    width: 100%; 
	box-sizing: border-box; 
}

.measurement-row #categorySelect {width:50%;}
.measurement-row #searchText {width:50%;}

.measurement-row #cboWhole{width:25%;}
.measurement-row #cboPart {width:25%;}
.measurement-row #cboConvert {width:50%;}

.measurement-row #ingOptions{width:54%;}
.measurement-row #saveIngBtn {width:23%;}
.measurement-row #closeIngBtn {width:23%;}

.measurement-row #ingHeader {width:78%;}
.measurement-row #saveHeaderBtn {width:22%;}

.list-group-item a {
    text-decoration: none;
    color: #212529;
}
.list-group-item a:hover {
    text-decoration: underline;
}
.pagination {
    justify-content: center;
}
.category {
    color: red;
}
.joinbtn {
   display: grid; 
   grid-template-columns: repeat(2, 1fr); 
   gap: 10px; 
   margin-bottom:4px;
}

/* Overlay (full screen + blocks interaction) */
#authModal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;              /* center modal */
    align-items: center;
    justify-content: center;
    z-index: 9999;              /* ensure it's above everything */
    pointer-events: auto;       /* capture all clicks */
}

/* Hide when not active */
#authModal.hidden {
    display: none;
}

/* Modal box */
.modal-box {
    background: #fff;
    width: 380px;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    position: relative;
    z-index: 10000;             /* above overlay layer */
}

/* Prevent background scrolling */
body.modal-open {
    overflow: hidden;
}

/* Disable ALL interaction behind modal */
body.modal-open > *:not(#authModal) {
    pointer-events: none;
}

/* Re-enable interaction inside modal */
#authModal,
#authModal * {
    pointer-events: auto;
}

/* Form */
#authModal form {
	pointer-events: auto;
    display: none;
}

#authModal.show {
    display: flex;
}

#authModal form.active {
    display: block;
}

#authModal.myinput {
    font-size: 16px;
    line-height: 1.2;
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

#authModal.link {
    font-size: 12px;
    color: #007BFF;
    cursor: pointer;
    margin-top: 10px;
    display: inline-block;
}

#authModal.status {
    margin-top: 10px;
    font-size: 13px;
}

.author {
    color: indianred;
}

.mama {
    color: #b5e61d; 
	font-size: 29px; 
	margin: 15px 0 10px 0;
	font-family: ravie;
}

.mama2 {
    color: #e67e22; 
	font-size: 29px; 
	margin: 15px 0 10px 0;
	font-family: ravie;
}

.mama3 {
    color: #777777; 
	font-size: 29px; 
	margin: 15px 0 10px 0;
	font-family: ravie;
}

.spacer {
  display: inline-block;
  width: 70px; 
}

.button-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 10px; 
}

.req-box {
  height: auto;
  border:1px solid #ccc; 
  padding:10px; 
  margin: 0px;
}

.inst-box {
  height:auto; 
  margin: 20px 0 10px 0; 
  padding: 5px 10px; 
}

.meal-box {
  height:auto; 
  margin: 0, 20px 10px 20px; 
  padding: 5px 10px; 
}

.inst-div {
  background-color:#2a3744; 
  color:#fff;
  border: 1px solid #fff;	
  padding: 0 15px;	
}

.outside-only {
  border-collapse: collapse;
  margin-left: 0px;
  width: 100%;
}

.outside-only td, .outside-only th {
  border: none;
  text-align: left;
}

.field {
  position: relative;
}

.field input,
.field button,
.field textarea,
.field select {
  width: 100%;
  padding: 10px 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  background: white;
}

.field label {
  position: absolute;
  left: 12px;
  top: 16px;
  background: white;
  padding: 0 4px;
  color: #667;
  transition: all 0.2s ease;
  pointer-events: none;
}

/* Textarea */
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -8px;
  font-size: 12px;
  color: #1976d2;
}
.field textarea:focus {
  outline: none;
  border-color: #1976d2;
}

/* Input */
.field input:focus + label,
.field input:not(:placeholder-shown) + label,

/* Select */
.field select:focus + label,
.field select:valid + label {
  top: -8px;
  font-size: 12px;
  color: #1976d2;
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: #1976d2;
}

.sugar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.sugar-name {
    background: #f8e7c0;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    font-weight: 500;
}

.recipe {
    photo-width: 120px;
    gap: 15px;
}

.description {
	margin-left: 0;
	margin-top: 0;
    min-height: 110px;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.caption {
    --caption-color: #C8BFE7;

    font-size: 20px;
    display: inline-block;
    padding: 2px 8px;
    background-color: var(--caption-color);
    border: 1px solid var(--caption-color);
    border-radius: 5px;
    margin-bottom: 0;
}

.caption-red {
    --caption-color: #ed8273;
}

.caption-green {
    --caption-color: #a7d58c;
}

.caption-blue {
    --caption-color: #91c3e4;
}

.caption-gold {
    --caption-color: #fcd883;
}

.caption-orange {
    --caption-color: #ffa76f;
}

.mycard {
  box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
  transition: 0.3s;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin: 10px 0;
}  

.mycard:hover {
  box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
}

.mycontainer {
  padding: 5px 16px;
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 9999;
}

.modal-content {
    width: 360px;
    max-width: 90%;
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin: 10% auto;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

.modal-content2 {
    width: 360px;
    max-width: 90%;
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin: 10% auto;
    box-shadow: 0 8px 30px rgba(0,0,0,.3);
}

.modal-buttons {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.button.red {
    background: #c0392b;
    color: #fff;
}

.button.gray {
    background: #777;
    color: #fff;
}

.calcontainer {
    margin: 20px 20px 5px 20px; 
    width: auto; 
    box-sizing: border-box;
    background: #fff;
	border: 1px solid;
	border-color: #D8D9E0;
    border-radius: 5px;
    padding: 8px;
}
	
header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
}

.header-display {
    text-align: center;
	font-weight: bold;
}

.week div,
.days div,
.header-display p {
    font-size: clamp(0.7rem, 2vw, 1rem);
}
	
.days,
.week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    width: 100%;
    gap: 2px;
}
	
.week div,
.days div {
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: 1;
}
	
.days div:hover {
  background: #7092BE;
  color: #fff;
  cursor: pointer;
}
.week div {
  opacity: 0.5;
}

.current-date,
.selected-date {
    background-color: #7092BE;
    color: #fff;
}

.display-selected {
	display: none;
    text-align: center;
    font-size: 8px;
	font-weigth: bold;
	padding: 8px;
    margin-bottom: 8px;
}
	
.left,
.right {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
}

.left {left: 0;}
.right {right: 0;}


.title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.recipe-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.req-title a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
	color: #7092be;
}

.replies {
    margin-left: 20px;
    white-space: nowrap;
    flex-shrink: 0;
	color: indianred;
}

.reply-display {
    background: #fafafa;
    border-radius: 5px;
	border: 1px solid;
	border-color: #ccc;
    padding: 15px;
    flex-shrink: 0;
	margin: 10px 0 10px 0;
}

