* {
    box-sizing: border-box;
    font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    font-size: 16px;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100vh; /* Full viewport height */
}

body {
  display: flex;
  flex-direction: column;
  max-width:700px;
  margin:auto;
}

h1 {
  font-size: 25px;
}

h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    color: #474b50;
}
.form {
    display: flex;
    flex-flow: column;
    width: 100%;
}
.form .form-label {
    display: block;
    padding: 20px 0 10px 0;
    font-weight: 500;
    font-size: 14px;
    color: #474b50;
}
.form .form-group {
    display: flex;
    position: relative;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.form .form-group .form-icon-left, .form .form-group .form-icon-right {
    fill: #c1c6cb;
    width: 40px;
    position: absolute;
    transform: translateY(-50%);
    top: 50%;
    pointer-events: none;
}
.form .form-group .form-icon-left {
    left: 0;
}
.form .form-group .form-icon-left + .form-input {
    padding-left: 40px;
}
.form .form-group .form-icon-right {
    right: 0;
}
.form .form-group .form-icon-right + .form-input {
    padding-right: 40px;
}
.form .form-group:focus-within .form-icon-left {
    fill: #989fa8;
}
.form .form-input {
    width: 100%;
    height: 43px;
    border: 1px solid #dee1e6;
    padding: 0 15px;
    border-radius: 4px;
    color: #000;
}
.form .form-input::placeholder {
    color: #989fa8;
}
.form .form-link {
    color: #9cb198;
    font-weight: 500;
    text-decoration: none;
    font-size: 14px;
}
.form .form-link:hover {
    color: #476142;
}
.form p.register-link {
    margin: 0;
    padding: 20px 0 0 0;
    font-size: 14px;
    color: #9cb198;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    border: 0;
    background-color: #9cb198;
    color: #FFFFFF;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    height: 42px;
    box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
}
.btn:hover {
    background-color: #476142;
}

.login, .register {
    display: flex;
    flex-flow: column;
    width: 400px;
    max-width: 95%;
    background-color: #dbe7da;
    box-shadow: 0px 0px 7px 1px rgba(45, 57, 68, 0.05);
    border-radius: 5px;
    margin: auto;
    padding: 35px;
}
.login h1, .register h1 {
    text-align: center;
    font-size: 24px;
    font-weight: 500;
    padding: 15px 0;
    margin: 0;
}
.pad-1 { padding: 5px; }
.mar-1 { margin: 5px; }
.pad-2 { padding: 10px; }
.mar-2 { margin: 10px; }
.pad-3 { padding: 15px; }
.mar-3 { margin: 15px; }
.pad-4 { padding: 20px; }
.mar-4 { margin: 20px; }
.pad-5 { padding: 25px; }
.mar-5 { margin: 25px; }
.pad-bot-1 { padding-bottom: 5px; }
.pad-top-1 { padding-top: 5px; }
.pad-left-1 { padding-left: 5px; }
.pad-right-1 { padding-right: 5px; }
.pad-x-1 { padding-left: 5px; padding-right: 5px; }
.pad-y-1 { padding-top: 5px; padding-bottom: 5px; }
.mar-bot-1 { margin-bottom: 5px; }
.mar-top-1 { margin-top: 5px; }
.mar-left-1 { margin-left: 5px; }
.mar-right-1 { margin-right: 5px; }
.mar-x-1 { margin-left: 5px; margin-right: 5px; }
.mar-y-1 { margin-top: 5px; margin-bottom: 5px; }
.pad-bot-2 { padding-bottom: 10px; }
.pad-top-2 { padding-top: 10px; }
.pad-left-2 { padding-left: 10px; }
.pad-right-2 { padding-right: 10px; }
.pad-x-2 { padding-left: 10px; padding-right: 10px; }
.pad-y-2 { padding-top: 10px; padding-bottom: 10px; }
.mar-bot-2 { margin-bottom: 10px; }
.mar-top-2 { margin-top: 10px; }
.mar-left-2 { margin-left: 10px; }
.mar-right-2 { margin-right: 10px; }
.mar-x-2 { margin-left: 10px; margin-right: 10px; }
.mar-y-2 { margin-top: 10px; margin-bottom: 10px; }
.pad-bot-3 { padding-bottom: 15px; }
.pad-top-3 { padding-top: 15px; }
.pad-left-3 { padding-left: 15px; }
.pad-right-3 { padding-right: 15px; }
.pad-x-3 { padding-left: 15px; padding-right: 15px; }
.pad-y-3 { padding-top: 15px; padding-bottom: 15px; }
.mar-bot-3 { margin-bottom: 15px; }
.mar-top-3 { margin-top: 15px; }
.mar-left-3 { margin-left: 15px; }
.mar-right-3 { margin-right: 15px; }
.mar-x-3 { margin-left: 15px; margin-right: 15px; }
.mar-y-3 { margin-top: 15px; margin-bottom: 15px; }
.pad-bot-4 { padding-bottom: 20px; }
.pad-top-4 { padding-top: 20px; }
.pad-left-4 { padding-left: 20px; }
.pad-right-4 { padding-right: 20px; }
.pad-x-4 { padding-left: 20px; padding-right: 20px; }
.pad-y-4 { padding-top: 20px; padding-bottom: 20px; }
.mar-bot-4 { margin-bottom: 20px; }
.mar-top-4 { margin-top: 20px; }
.mar-left-4 { margin-left: 20px; }
.mar-right-4 { margin-right: 20px; }
.mar-x-4 { margin-left: 20px; margin-right: 20px; }
.mar-y-4 { margin-top: 20px; margin-bottom: 20px; }
.pad-bot-5 { padding-bottom: 25px; }
.pad-top-5 { padding-top: 25px; }
.pad-left-5 { padding-left: 25px; }
.pad-right-5 { padding-right: 25px; }
.pad-x-5 { padding-left: 25px; padding-right: 25px; }
.pad-y-5 { padding-top: 25px; padding-bottom: 25px; }
.mar-bot-5 { margin-bottom: 25px; }
.mar-top-5 { margin-top: 25px; }
.mar-left-5 { margin-left: 25px; }
.mar-right-5 { margin-right: 25px; }
.mar-x-5 { margin-left: 25px; margin-right: 25px; }
.mar-y-5 { margin-top: 25px; margin-bottom: 25px; }

/* from here hompage */

.dateHidden {
    display : none;
}
.childHidden {
    display : none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  background-color: #333941;
  max-width:700px;
  margin: auto;
}

#headMenu svg {
  height: 50%;                /* half the height of #headMenu */
  width: auto;                /* keep aspect ratio */
  fill: currentColor;         /* respect parent text color */
}

.wrapper {
  padding-left:10px;
}

.header .wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 0 auto;
    width: 100%;
    height: 100%;
}
.header .wrapper h1, .header .wrapper a {
    display: inline-flex;
    align-items: center;
}
.header .wrapper h1 {
    font-size: 20px;
    padding: 0;
    margin: 0;
    color: #fff;
    font-weight: normal;
}
.header .wrapper .menu {
    display: flex;
    align-items: center;
}
.header .wrapper .menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 8px;
    margin: 0 3px;
    text-decoration: none;
    color: #dddfe2;
    font-weight: 500;
    font-size: 16px;
    line-height: 16px;
}
.header .wrapper .menu a svg {
    fill: #dddfe2;
    margin: 2px 8px 0 0;
}
.header .wrapper .menu a:hover, .header .wrapper .menu a:active {
    color: #ebebec;
}
.header .wrapper .menu a:hover svg, .header .wrapper .menu a:active svg {
    fill: #ebebec;
}
.header .wrapper .menu a:last-child {
}

#main.content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* smooth scroll on iOS */
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
  -webkit-overflow-scrolling: touch;
}

.page-title {
  margin-top: 175px;
  background: white;
  z-index: 996;
  padding: 10px;
}

.page-title-home {
  margin-top: 115px;
  background: white;
  z-index: 996;
  padding: 10px;
  height:calc(100% - 60px);
}

.page-title-approve {
  margin-top: 60px;
  background: white;
  z-index: 996;
  padding: 10px;
  display: flex;
  flex-direction: column;
  height:calc(100% - 60px);
}

.content .page-title h2 {
    margin: 0;
    padding: 0 0 7px 0;
    font-size: 20px;
    font-weight: 600;
    color: #53585e;
}
.content .page-title p {
    margin: 0;
    padding: 0;
    font-size: 14px;
    color: #777e86;
}
.content .block {
    box-shadow: 0px 0px 7px 1px rgba(45, 57, 68, 0.05);
    margin: 25px 0;
    padding: 25px;
    border-radius: 5px;
    background-color: #fff;
}

.content .block p {
    padding: 7px;
    margin: 0;
}
.content .profile-detail {
    display: flex;
    flex-flow: column;
    font-size: 18px;
    padding: 5px 0;
}
.content .profile-detail strong {
    display: block;
    color: #92979e;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.content .lunchSubmitRed {
    align-items: center;
    justify-content: center;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    border: 0;
    background-color: #ffac97;
    color: #FFFFFF;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    height: 42px;
    box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
}

.content .lunchSubmitRed:hover {
    background-color: #702f1e;
}

.content .lunchSubmitYellow {
    align-items: center;
    justify-content: center;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    border: 0;
    background-color: #fff5a7;
    color: black;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    height: 42px;
    box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
}

.content .lunchSubmitYellow:hover {
    background-color: #958a2b;
}

.content .lunchSubmitGrey {
    align-items: center;
    justify-content: center;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    border: 0;
    background-color: #7b7b7b;
    color: black;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    height: 42px;
    box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
}

.content .lunchSubmitGrey:hover {
    background-color: #4e4e4e;
}

.content .lunchSubmitGreen {
    align-items: center;
    justify-content: center;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    border: 0;
    background-color: #9cb198;
    color: #FFFFFF;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    height: 42px;
    box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
}

.content .lunchSubmitGreen:hover {
    background-color: #476142;
}

.content .LunchInputName {
    width: 10%;
    height: 43px;
    border: 1px solid #dee1e6;
    padding: 0 15px;
    border-radius: 4px;
    color: #000;
    border: none;
}

.content .message {
    display: flex; /* Add this line */
    align-items: center;
    justify-content: center;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    border: 0;
    background-color: #ffac97;
    color: #FFFFFF;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 4px;
    height: 42px;
    line-height: 42px;
    box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
}

/* Calendar from here */

#calendarContainer {
  width: 100%;
  box-sizing: border-box;
}

.month-form {
  height: 50px;
  padding: 0px;
  margin: 0px;
  flex:0 0 33.33%;
  background: #ffac97;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  text-align: center;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.month-ribbon {
  position: fixed;
  top: 60px;
  height: 55px;
  left: 0;
  right: 0;
  z-index: 999;
  background-color: #333941;
  max-width: 700px;
  margin: auto;

  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  gap: 5px;

  scroll-padding-left: 50vw;
  scroll-padding-right: 50vw;
  scroll-snap-type: x mandatory;

  box-shadow: 0 6px 12px -4px rgba(51, 57, 65, 0.5);
}

@media (min-width: 600px) {
  .month-ribbon {
    scrollbar-gutter: stable;
    height:65px;
  }
}

.month-button {
  height: 50px;
  flex: 0 0 33.33%;
  background: #ffac97;
  color: #333941;
  border: none;
  border-radius: 4px;
  border: 2px solid #e85c3a;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  text-align: center;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.4;
}

.month-button .month-year {
  font-size: 16px;
  font-weight: normal;
  opacity: 0.9;
}

.month-button:hover {
  background-color: #e85c3a;
}

.month-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.month-disabled:hover {
  background: inherit;
}

.month-button.future {
    background-color: #ccc !important;
    color: #666 !important;
    cursor: not-allowed;
    pointer-events: none;
}

.month-form,
.month-button {
  scroll-snap-align: none; /* or just remove the property */
  transition: none !important;
}

.calendar-grid {
    display: grid;
    grid-auto-rows: 1fr; /* max 6 weeks */
    gap: 5px;
    height: 100%;
    min-height: 0;
}

.week-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
    height: 100%; /* ✅ important */
}

.calendar-cell {
  width: 100%;
  height: 100%;
  min-height: 80px;
  box-sizing: border-box;
}

.calendar-day-red,
.calendar-day-yellow,
.calendar-day-green,
.calendar-day-holiday {
    height: 100%;
    min-height: 0; /* ✅ important */
}

.calendar-day-red {
  background: #ffe0e0;
  color: #fd7962;
  border: 2px solid #fd7962;
  border-radius: 4px;
  font-size: 18px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align items to the top */
  align-items: stretch;        /* Allow full width children */
  box-sizing: border-box;
  box-shadow: 
    0 0 5px rgba(0,0,0,0.3),
    0 0 15px rgba(0,0,0,0.1);
}

.calendar-day-yellow {
  background: #fff5a7;
  color: #ffe100;
  border: 2px solid #fce747;
  border-radius: 4px;
  font-size: 18px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align items to the top */
  align-items: stretch;        /* Allow full width children */
  box-sizing: border-box;
  box-shadow: 
    0 0 5px rgba(0,0,0,0.3),
    0 0 15px rgba(0,0,0,0.1);
}

.calendar-day-green {
  background: white;
  color: #749f6c;
  border: 2px solid #749f6c;
  border-radius: 4px;
  font-size: 18px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align items to the top */
  align-items: stretch;        /* Allow full width children */
  box-sizing: border-box;
  box-shadow: 
    0 0 5px rgba(0,0,0,0.3),
    0 0 15px rgba(0,0,0,0.1);
}

.calendar-day-holiday {
    background-color: #ffe0e0;
    border: 2px solid #fa7777;
    border-radius: 4px;
    opacity: 0.85;
}

.calendar-day-empty {
    background: transparent;
    border: none;
}

.calendar-count {
  display: flex;
  align-items: center;    /* vertical centering */
  justify-content: center; /* optional horizontal centering */
  height: 100%;           /* fill parent height */
  box-sizing: border-box;
}

.calendar-row {
  display: flex;
  justify-content: center; /* horizontal */
  align-items: center;     /* vertical */
  height: 100%;            /* or a fixed height like 50px */
  text-align: center;
}

.calendar-date {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

#matchedData {
    flex: 1;
    padding: 10px;
    width: 100%;
    background-color: #dbe7da;
    border-radius: 4px;
    border: 2px solid #749f6c;
    box-shadow: 
      0 0 5px rgba(0,0,0,0.3),
      0 0 15px rgba(0,0,0,0.1);
    display: flex;           /* ✅ enable flex layout */
    flex-direction: column;  /* ✅ stack children properly */
}

.lunchDiv {
    width:98%;
    padding:5px;
    margin-left:1%;
    margin-bottom: 25px;
    background-color: #9cb198;
    text-align: center;
    align-content: center;
    font-size: 15px;
    color: white;
    border-radius: 4px;
    box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
}

.lunchDiv-red {
    width:98%;
    padding:5px;
    margin-left:1%;
    margin-bottom: 25px;
    background-color: #ffac97;
    text-align: center;
    align-content: center;
    font-size: 15px;
    color: white;
    border-radius: 4px;
    box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
}

.lunchDiv-yellow {
    width:98%;
    padding:5px;
    margin-left:1%;
    margin-bottom: 25px;
    background-color: #fff5a7;
    text-align: center;
    align-content: center;
    font-size: 15px;
    color: white;
    border-radius: 4px;
    box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
}

.countNumber {
    font-size:20px;
    color: white;
}

.countWrapper {
  display: flex;
  justify-content: space-around;
  gap: 10px;
}

.countColumn {
  display: flex;
  align-items: center;   /* vertical centering */
  justify-content: center; /* optional horizontal centering */
}

.countColumn form {
  margin: 5px 0;
}

.approveButton,
.editButton {
  padding: 6px 6px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.approveButton {
  background-color: #ffffff;
  color: #9cb198;
  margin-right:6px;
}

.editButton {
  background-color: #eeeeee;
  color: #444;
}

.day-summary {
    width:60%;
    margin-left:20%;
    margin-bottom: 25px;
    background-color: #9cb198;
    text-align: center;
    align-content: center;
    font-size: 20px;
    border-radius: 4px;
    box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
}

.wrap {
  display: flex;
  justify-content: center;   /* Center horizontally */
  align-items: flex-start;   /* Align to top */
  height: 100vh;             /* Full viewport height */
  width: 100%;
  box-sizing: border-box;
  padding-top: 10px;         /* Optional: space from top */
}

.dayRegisterButton {
  background: #9cb198;               /* Keep original button color */
  width: 50%;
  margin-left: 25%;
  margin-bottom: 5px;                /* Match spacing from .day-summary */
  text-align: center;                /* Center text like .day-summary */
  font-size: 15px;                   /* Match font size */
  border-radius: 4px;
  box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
  border: none;                      /* Optional: remove default button border */
  padding: 10px 0;                   /* Optional: add vertical padding */
  cursor: pointer;                   /* Optional: show pointer on hover */
}

.wildCardButton {
  background: #fff5a7;               /* Keep original button color */
  width: 50%;
  margin-left: 25%;
  margin-bottom: 5px;                /* Match spacing from .day-summary */
  text-align: center;                /* Center text like .day-summary */
  font-size: 15px;                   /* Match font size */
  border-radius: 4px;
  box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
  border: none;                      /* Optional: remove default button border */
  padding: 10px 0;                   /* Optional: add vertical padding */
  cursor: pointer;                   /* Optional: show pointer on hover */
}

.match-row.wildcardRow {
  border: 5px solid #fff5a7;
}

.dayCancelButton {
  background: #ffac97;               /* Keep original button color */
  width: 50%;
  margin-left: 25%;
  margin-bottom: 5px;                /* Match spacing from .day-summary */
  text-align: center;                /* Center text like .day-summary */
  font-size: 15px;                   /* Match font size */
  border-radius: 4px;
  box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
  border: none;                      /* Optional: remove default button border */
  padding: 10px 0;                   /* Optional: add vertical padding */
  cursor: pointer;                   /* Optional: show pointer on hover */
}

.lunchRegisterButton {
  background: #9cb198;               /* Keep original button color */
  width: 50%;
  margin-left: 25%;
  margin-bottom: 5px;                /* Match spacing from .day-summary */
  text-align: center;                /* Center text like .day-summary */
  font-size: 15px;                   /* Match font size */
  border-radius: 4px;
  box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
  border: none;                      /* Optional: remove default button border */
  padding: 10px 0;                   /* Optional: add vertical padding */
  cursor: pointer;                   /* Optional: show pointer on hover */
}

.lunchCancelButton {
  background: #ffac97;               /* Keep original button color */
  width: 50%;
  margin-left: 25%;
  margin-bottom: 5px;                /* Match spacing from .day-summary */
  text-align: center;                /* Center text like .day-summary */
  font-size: 15px;                   /* Match font size */
  border-radius: 4px;
  box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
  border: none;                      /* Optional: remove default button border */
  padding: 10px 0;                   /* Optional: add vertical padding */
  cursor: pointer;                   /* Optional: show pointer on hover */
}

/* day ribbon from here */

.day-ribbon {
  position: fixed;
  top: 115px; /* below header + month-ribbon */
  left: 0;
  right: 0;
  height: 55px;
  z-index: 998;
  background-color: #333941;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  padding-top: 5px;
  padding-bottom: 5px;
  gap: 6px;
  max-width:700px;
  margin: auto;
}

.day-form {
  width: 100%;
  height: 100%;
  display: flex;
}

.day-form-ribbon {
  flex: 0 0 20%;
  scroll-snap-align: start;
}

.day-button {
  width: 100%;
  padding: 10px;
  background: #9cb198;
  color: white;
  border: 2px solid #749f6c;
  border-radius: 4px;
  font-weight: bold;
  font-size: 16px;
  cursor: pointer;
  text-align: center;
}

.day-button:hover {
  background-color: #5e8658;
}

.day-button.past-day {
  background-color: #ffac97; /* Bootstrap-style red */
  border: 2px solid #fd7962;
  color: white;
}

.day-button.today-day {
  background-color: #fff5a7; /* yellow */
  border: 2px solid #fce747;
  color: black;
}

.day-button.has-lunch {
  background-color: #4CAF50;
  color: white;
  border: 1px solid #388E3C;
}

#matchedDataAdmin {
    padding:10px;
    padding-bottom:60px;
    width:100%;
    background-color: #dbe7da;
    border-radius: 4px;
    box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.match-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #ccc;
  padding: 8px 12px;
  background-color: #f9f9f9;
  border-radius: 4px;
  font-family: sans-serif;
  color:black;
  margin-bottom:5px;
}

.match-row:last-child {
  margin-bottom: 0;
}

.match-row.absent {
  background-color: #ffac97; /* light red */
  border-color: #ffac97;
}


.extraPlannedRow {
    background-color: grey !important;
}

.match-cell {
  flex: 1;
  padding: 0 10px;
  white-space: nowrap;
  color:black;
  text-align: start;
}

.match-cell:first-child {
  flex: 2;
}

textarea.lunchInput,
textarea.snackInput {
  width: 98%;
  border-radius: 4px;
  box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
  margin-bottom: 8px;
  resize: vertical;
}

.cookRegisterButton {
  background: #9cb198;               /* Keep original button color */
  width: 98%;
  margin-bottom: 5px;                /* Match spacing from .day-summary */
  text-align: center;                /* Center text like .day-summary */
  font-size: 15px;                   /* Match font size */
  border-radius: 4px;
  box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
  border: none;                      /* Optional: remove default button border */
  padding: 10px 0;                   /* Optional: add vertical padding */
  cursor: pointer;                   /* Optional: show pointer on hover */
}

.tappedDate {
    font-size: 25px;
}

.approvalHeader {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: bold;
  font-size: 16px;
  color: #9cb198;
}

.headerCell {
  flex: 1;
  text-align: center;
}

.approvalForm {
  width: 100%;
  padding: 10px;
  background: #f4f4f4;
  border-radius: 6px;
}

.approvalTable {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.approvalRow {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 8px;
  border-radius: 4px;
  box-shadow: 0 0 4px rgba(0,0,0,0.1);
}

.approvalCell {
  text-align: center;
}

.nameCell {
  flex: 2;
  text-align: left;
  padding-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.approvalCell:not(.nameCell) {
  flex: 1;
}

.approvalForm input[type="checkbox"] {
  accent-color: #9cb198;
}

.approveWrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.extraWrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* Row 2 layout */
.extraRow {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap; /* prevents overflow */
}

/* Row 3 aligned right */

.actionRow {
    display: flex;
    justify-content: center;   /* ✅ center instead of right */
    gap: 10px;
}

/* Inputs */
.extraInput {
    padding: 4px 6px;
    min-width: 100px;
}

.extraInput {
    padding: 3px 6px;
}

.extraPerChildInput {
    margin-top: 4px;
    width: 80px;
    font-size: 12px;
    padding: 2px 4px;
}

.disabledButton {
  background-color: #ccc !important;
  color: #666 !important;
  cursor: not-allowed;
  border: none;
}

.greenMessage {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  appearance: none;
  cursor: pointer;
  border: 0;
  background: #9cb198;
  color: #ffffff;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  line-height: 42px;
  box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);

  /* ⭐ Add margin here */
  margin-bottom: 20px;
  width: 98%;
}


/* Generic in-form alert box (centered under buttons) */
.alertMessage {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  appearance: none;
  cursor: default;          /* it's a message, not a button */
  border: 0;
  background: #ffac97;      /* requested color */
  color: #ffffff;           /* white text */
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;       /* requested radius */
  height: 42px;
  line-height: 42px;
  box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
  margin-top: 8px;          /* space under the button */
  text-align: center;
  width: 100%;              /* spans form width; change to 'auto' if you prefer fit-content */
  max-width: 520px;         /* keeps it neat on wide screens */
  margin-left: auto;        /* center horizontally */
  margin-right: auto;
}

.alertMessage[hidden] {
  display: none !important;
}

/* profile form */

.infoForm {
  display: grid;
  grid-template-columns: 30% 60% 10%; /* labels, inputs, edit buttons */
  grid-gap: 5px 5px;
  margin-top: 10px;
  padding:5px;
  width: 100%;            /* respect parent width */
  max-width: 100%;        /* never overflow parent */
  box-sizing: border-box; /* include padding/border in width calculation */

  justify-items: stretch; /* make each cell fill its column */
  justify-content: center; /* center the whole grid inside parent */
}

.editableRow {
  display: contents; /* let children align into grid cells */
}

.labelCell {
  font-weight: bold;
  align-self: center;
  text-align: right;
}

.inputCell {
  display: flex;
  align-items: center;
}

/* Apply the same styles to all inputs inside .inputCell */
.inputCell input {
  box-shadow: 0px 0px 7px 1px rgba(45, 57, 68, 0.05);
  border-radius: 4px;
  background: #eee;
  border: 1px solid #ccc;
  color: #666;
  width: 100%;          /* fill the column */
  box-sizing: border-box; /* prevent overflow when editable */
}

.editCell {
  display: flex;
  justify-content: center;
  align-items: center;
}

.infoEditButton {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px; /* pencil size */
}

.infoApproveWrapper {
  grid-column: 1 / span 3; /* span all columns */
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.infoApproveWrapper .approveButton {
  margin-right: 10px;
}

.infoApproveWrapper .approveButton:last-child {
  margin-right: 0; /* prevent extra margin on the last button */
}

/* admin crossing from here */
.crossingContiner {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 equal columns */
  grid-template-rows: repeat(2, 1fr);    /* 2 equal rows */
  width: calc(100% - 10px);
  margin: 5px;
  margin-top:25%;
  gap: 10px;                             /* equal gap both directions */
  box-sizing: border-box;
}

.crossingContiner a {
  display: flex;                         /* anchor behaves like block/flex */
  align-items: center;                   /* center child vertically */
  justify-content: center;               /* center child horizontally */
  text-decoration: none;                 /* remove underline */
}

.crossingTile {
  aspect-ratio: 1 / 1;                   /* force square */
  width: 100%;                           /* fill anchor/grid cell */
  padding: 5px;
  background-color: #9cb198;
  text-align: center;
  display: flex;                         /* center SVG/text inside */
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: white;
  border-radius: 4px;
  box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
  box-sizing: border-box;
}

.crossingTile svg {
  width: 60px;   /* fixed width */
  height: 60px;  /* fixed height */
  fill: currentColor;
}

.nameCol {
  width: 150px; /* fixed width for names */
  font-weight: bold;
}
.dataCol {
  flex: 1;
}
.dataRow {
  padding: 2px 0;
}

.nameBadge {
  display: flex;
  align-items: center;
  justify-content: center; /* center content */
  text-align: center;      /* center multiline text */
  width: 100%;
  user-select: none;
  cursor: default;
  color:black;
}
.spareBadge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  user-select: none;
  cursor: default;
  margin-top: 6px;
}

.childrenBlock {
  grid-column: 1 / 4; /* spans all 3 columns */
  width: 100%;
}

.passwordForm .editableRow {
  display: grid;
  grid-template-columns: 100px 1fr; /* no edit button column */
  align-items: right;
  margin-bottom: 10px;
}

.passwordForm .labelCell {
  padding-right: 10px;
  font-weight: 600;
}

.passwordForm .inputCell input {
  width: 100%;
  padding: 6px 10px;
  box-sizing: border-box;
}

.childrenHeader {
  display: grid;
  grid-template-columns: 1fr auto; /* two columns: empty space + label */
  margin-bottom: 20px;
}

.childrenHeader .labelCell {
  justify-self: start; /* push text to the right */
  font-weight: 600;
}

/* Wrapper inside lunchDiv */
.specialDayWrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
}

/* Form is a horizontal row */
.specialDayForm {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  margin:0px;
}

/* Input: 75% width */
.specialDayInput {
  width: 75%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

/* Button next to input */
.specialDayForm .editButton {
  padding: 8px 14px;
  white-space: nowrap;
}

.calendar-day,
.calendar-day-green,
.calendar-day-yellow,
.calendar-day-red {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ⭐ This forces the date header to stay at the TOP LEFT */
.calendar-date {
    align-self: stretch;     /* makes it full width, not centered */
    position: relative;
}

/* Your previous styles — unchanged */
.calendar-date-number {
    font-weight: bold;
    text-align: center;
    font-size: 20px;
}

.calendar-date-celebration {
    position: absolute;
    right: 4px;
    top: 0;
    font-size: 20px;
    pointer-events: none;
}

.calendar-children-count {
    font-size: 15px;
    text-align: center;   /* center the text */
    width: 100%;          /* full width ensures proper centering */
    opacity: 0.7;
    margin-top: 4px;
    display: block;       /* avoid flex side effects */
}

/* Spodní řádek dlaždice s iniciálami průvodců a počtem dětí */
.calendar-bottom {
    display: flex;
    justify-content: space-between; /* left = initials, right = count */
    align-items: center;
    width: 100%;
    font-size: 10px;      /* můžeš snížit na 10px podle vzhledu */
    opacity: 0.8;
    padding: 2px 4px;     /* lehké odsazení od okrajů */
    box-sizing: border-box;
}

/* Vlevo – iniciály průvodců (např. "J,L") */
.calendar-bottom-left {
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size:12px;
    font-weight: bold;
    max-width: 70%;       /* aby dlouhý seznam nepřetlačil číslo vpravo */
}

/* Vpravo – počet dětí (např. "10") */
.calendar-bottom-right {
    text-align: right;
    min-width: 2ch;       /* ať to drží šířku i pro 1-místné číslo */
    font-weight: 600;     /* jemné zdůraznění počtu */
}

.approvalTable.teacherTable {
    margin-bottom: 10px;
}

.billingBox {
    width:98%;
    padding:5px;
    margin-left:1%;
    margin-bottom: 25px;
    background-color: #9cb198;
    align-content: center;
    font-size: 15px;
    color: white;
    border-radius: 4px;
    box-shadow: 0px 0px 6px 1px rgba(45, 57, 68, 0.1);
}

.billingName {
    font-weight: bold;
}

.billingTitle {
  color:white;
  margin-bottom: 6px;
}

.billingSection {
  margin-left: 10px;
  margin-bottom: 6px;
}

.billingTotal {
  margin-top: 6px;
}

.billingHeaderTotal {
    font-weight: bold;
    font-size: 16px;
    white-space: nowrap;
}

/* ✅ positive / zero total */
.billingHeaderTotal.billingPositive {
    color: black;
}

/* ✅ negative total */
.billingHeaderTotal.billingNegative {
    color: red; /* readable red on green */
}

.billingDetails {
    display: none;
    margin-top: 8px;
}

.billingBox.expanded .billingDetails {
    display: block;
}

.billingToggle {
    font-size: 0.85em;
    cursor: pointer;
    text-decoration: underline;
    color: #fff;
    opacity: 0.85;
}

.billingToggle:hover {
    opacity: 1;
}

/* ==========================
   Global Extra Payments Box
   ========================== */

.billingBox--extra {
    width: 98%;
    margin-left: 1%;
    margin-bottom: 25px;
    padding: 12px 14px;

    background-color: #6f6f6f; /* slightly softer grey */
    color: white;

    border-radius: 6px;
    box-shadow: 0 0 6px 1px rgba(45, 57, 68, 0.1);

    font-size: 15px;
}

/* Header should not fight the parent box */
.billingBox--extra .billingHeader {
    background: transparent;
    padding: 0;
}

/* LEFT SIDE → vertical form layout */
.billingBox--extra .billingHeaderLeft {
    display: flex;
    flex-direction: column;
    gap: 10px; /* clean vertical spacing */
}

/* Each field stacked vertically */
.billingBox--extra .billingLine {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Labels slightly lighter */
.billingBox--extra .billingLine label,
.billingBox--extra .billingLine {
    font-size: 0.9em;
    opacity: 0.95;
}

/* Inputs consistent and readable */
.billingBox--extra input[type="text"],
.billingBox--extra input[type="number"] {
    width: 100%;
    max-width: 260px;

    padding: 6px 8px;
    font-size: 0.95em;

    border-radius: 4px;
    border: none;

    outline: none;
}

/* Button stands on its own line */
.billingBox--extra button {
    width: fit-content;

    margin-top: 6px;
    padding: 6px 14px;

    font-size: 0.9em;
    font-weight: bold;

    border-radius: 4px;
    border: none;

    cursor: pointer;
}

/* List of already added extras */
.billingBox--extra #extraList {
    margin-top: 8px;
    font-size: 0.9em;
    opacity: 0.95;
}

.billingExtraTotal {
  margin-top: 10px;
  padding-top: 6px;
  border-top: 1px dashed #ccc;
}

/* ✅ negative values */
.billingNegative {
    color: red;
    font-weight: bold;
}

/* ✅ positive / zero values */
.billingPositive {
    color: black;
    font-weight: bold;
}

/* ==========================
   Totals coloring rules
   ========================== */

/* Base total ("Celkem stravné") — value always white */
.billingTotals .billingTotalLine:first-child span:last-child {
    color: #fff !important;
    font-weight: normal;
}

/* Corrected total ("Celkem po úpravách") — value colored */
.billingTotals .billingTotalFinal span:last-child.billingNegative {
    color: red;
    font-weight: bold;
}

.billingTotals .billingTotalFinal span:last-child.billingPositive {
    color: black;
    font-weight: bold;
}

.childNameLabel {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.extraDescription {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

.extraAmount {
  width: 100%;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 14px;
  box-sizing: border-box;
}

.message-box {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.message-box.success {
    background: #e8f8ec;
    color: #1e7e34;
}

.message-box.error {
    background: #fdeaea;
    color: #c82333;
}

.message-box {
    background: #fdeaea;
    border: 1px solid #f3b3b3;
    color: #b00020;
    padding: 12px 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.billing-notice {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    background: rgb(255, 245, 167);
    border: 2px solid rgb(252, 231, 71);
    color: rgb(51, 57, 65);
    padding: 20px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,.15);
    text-align: center;
    min-width: 350px;
}

.close-notice {
    float:right;
    border:none;
    background:none;
    font-size:20px;
    cursor:pointer;
    color: rgb(51, 57, 65);
}

.teacherSummarySection {
    margin-bottom: 30px;
}

.teacherSummaryTable {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.teacherSummaryTable th,
.teacherSummaryTable td {
    border: 1px solid #ddd;
    padding: 8px 12px;
}

.teacherSummaryTable th {
    background: #f5f5f5;
    text-align: left;
}

.teacherTotal {
    margin-top: 10px;
    text-align: center;
    font-size: 1.1em;
}