body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-content: stretch;
    overflow: auto;
}

:root {
    --primary: #0082d6;
    --accent: #6fe8ff; /* icon accent */
    --icon-foreground: #ffffff;
    --menu-item-bg: rgba(255,255,255,0.02);
}

.header {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary);
    color: var(--icon-foreground);
    padding: 8px;
    overflow-x: auto; /* allow horizontal scroll on small screens instead of clipping */
    -webkit-overflow-scrolling: touch;
}

.header .menu-icon {
    flex: 0 0 auto; /* keep logo at its intrinsic size */
}
.header .menu-icon img {
    max-width: 150px;
    height: auto;
    display: block;
}

.header .menu-list {
    display: flex;
    gap: 6px;
    align-items: center;
}

.header .menu-item {
    cursor: pointer;
    padding: 8px 12px;
    flex: 0 0 auto;                 /* keep each item at its intrinsic width */
    min-width: 72px;                /* allow items to shrink but not below this width */
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border-radius: 10px;
    background: rgba(255,255,255,0.02);
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.header .menu-item:focus { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,0.08); }
.header .menu-item:hover { transform: translateY(-3px); background: rgba(255,255,255,0.06); }

.header .menu-item.disabled { opacity: 0.55; cursor: default; transform: none; }

.menu-item-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: inset 0 -6px 12px rgba(0,0,0,0.06);
}

.menu-item-label {
    font-size: 12px;
    letter-spacing: 0.6px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--icon-foreground);
}

.menu-item-icon .material-icons { font-size: 20px; color: var(--accent); transition: color 160ms ease; }

/* Per-item icon tints to give each menu item a distinct, friendly colour */
.menu-list .menu-item.disabled .material-icons { color: rgba(255,255,255,0.45); }
.menu-list .menu-item:nth-child(1) .material-icons { color: #ffffff; } /* HOME */
.menu-list .menu-item:nth-child(2) .material-icons { color: #4db6ff; } /* TRANSPORT */
.menu-list .menu-item:nth-child(3) .material-icons { color: #ffb74d; } /* ARRIVALS */
.menu-list .menu-item:nth-child(4) .material-icons { color: #ff8a65; } /* FOOD CHOICE */
.menu-list .menu-item:nth-child(5) .material-icons { color: #ffcc80; } /* FOOD CONSUME */
.menu-list .menu-item:nth-child(6) .material-icons { color: #e57373; } /* MEDICATIONS */
.menu-list .menu-item:nth-child(7) .material-icons { color: #81c784; } /* PERSONAL CARE */
.menu-list .menu-item:nth-child(8) .material-icons { color: #ba68c8; } /* ACTIVITIES */
.menu-list .menu-item:nth-child(9) .material-icons { color: #64b5f6; } /* STAFF SIGNOFF */
.menu-list .menu-item:nth-child(10) .material-icons { color: #ffd54f; } /* PARENT HANDOVER */
.menu-list .menu-item:nth-child(11) .material-icons { color: #ff8a80; } /* LOGOUT or overflow slot */

.menu-list .menu-item:focus .material-icons,
.menu-list .menu-item:hover .material-icons { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2)); }

.header .material-icons {
    font-size: 24px;
}
.header .thispage {
    border: 2px solid #0082d6; /* Outline color */
    padding: 4px; /* Space between icon and border */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Optional shadow for better visibility */
}

.header-setup {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #dd0067;
    color: white;
    padding: 10px;
}

.header-setup .setup-menu-item {
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    align-content: center;
    text-align-last: center;
}

.header-setup .material-icons {
    font-size: 24px;
}

.header-setup .thispage {
    border: 2px solid #0ddfe8; /* Outline color */
    padding: 4px; /* Space between icon and border */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Optional shadow for better visibility */
}

.header-setup .setup-menu-item:hover {
    border: 2px solid #000; /* Outline color */
    border-radius: 50%; /* Rounded border */
    padding: 4px; /* Space between icon and border */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Optional shadow for better visibility */
}

.header-reports {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #f78f1e;
    color: white;
    padding: 10px;
}

.header-reports .reports-menu-item {
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    align-content: center;
    text-align-last: center;
}

.header-reports .material-icons {
    font-size: 24px;
}

.header-reports .thispage {
    border: 2px solid #0ddfe8; /* Outline color */
    padding: 4px; /* Space between icon and border */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Optional shadow for better visibility */
}

.header-reports .reports-menu-item:hover {
    border: 2px solid #000; /* Outline color */
    border-radius: 50%; /* Rounded border */
    padding: 4px; /* Space between icon and border */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Optional shadow for better visibility */
}

.header-allocations {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: #ffbf00;
    color: white;
    padding: 10px;
}

.header-allocations .allocations-menu-item {
    cursor: pointer;
    padding: 10px;
    flex-direction: column;
    align-content: center;
    text-align-last: center;
}

.header-allocations .material-icons {
    font-size: 24px;
}

.header-allocations .thispage {
    border: 2px solid #0ddfe8; /* Outline color */
    padding: 4px; /* Space between icon and border */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Optional shadow for better visibility */
}

.header-allocations .allocations-menu-item:hover {
    border: 2px solid #000; /* Outline color */
    border-radius: 50%; /* Rounded border */
    padding: 4px; /* Space between icon and border */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Optional shadow for better visibility */
}

a {
  color: #002c72;
}

.content {
    flex: 1;
    padding: 5px;
    overflow-y: auto;
    overflow-x: auto;
    flex-grow: 1;
}

.footer {
    flex: 1;
    padding: 5px;
    overflow-y: auto;
    font-size: 9px;
    align-content: center;
    text-align-last: center;
}

.date {
    margin-bottom: 20px;
    font-size: 18px;
}

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

.name-item {
    margin: 10px;
    padding: 10px;
    border: 1px solid #6200ea;
    border-radius: 5px;
    cursor: pointer;
    background-color: #93b91d;
}

.name-item.selected {
    background-color: #4CAF50; /* Highlight color */
    color: white;
    border: 1px solid #388E3C; /* Highlight border color */
}

.name-item:hover {
    background-color: #799917;
}

.name-item.completed {
    background-color: #94a495; /* Highlight color */
    color: white;
    border: 1px solid #050505; /* Highlight border color */
    text-decoration: line-through;
}

.input-container {
    margin-top: 20px;
    display: none;
    flex-direction: column;
    background-color: #f3f4f6;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.mood-selection {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.mood-selection label {
    margin-right: 10px;
    font-size: 1.1em;
}

.mood-icon {
    cursor: pointer;
    font-size: 36px;
    margin-right: 10px;
    opacity: 0.5;
}

.mood-icon:hover {
    opacity: 1;
}

.mood-icon.selected {
    border: 2px solid #000; /* Outline color */
    border-radius: 50%; /* Rounded border */
    padding: 4px; /* Space between icon and border */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Optional shadow for better visibility */
}

.options {
    margin-bottom: 20px;
}

.option-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.option-item-selected{
    border: 4px solid #4CAF50;
    align-items: center;
    margin-bottom: 10px;
}

.option-item span {
    margin-right: 10px;
    font-size: 1.1em;
    flex-basis: 400px; /* ensures all labels have the same width */
}

.tick-cross, .tick-cross-activity, .tick-cross-food, .tick-cross-staff {
    cursor: pointer;
    font-size: 36px;
    color: red;
}

.tick-cross-food-fulfil {
    cursor: pointer;
    font-size: 48px;
    color: red;
}

.notessummary {
    font-size: 1em;
    border-radius: 5px;
    background-color: aliceblue;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.staffsignoff {
    font-size: 1em;
    border-radius: 5px;
}

.notes textarea {
    width: 100%;
    height: 100px;
    padding: 10px;
    font-size: 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.input-container button[type=submit] {
    align-self: flex-end;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #00d611;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.input-container button {
    align-self: flex-end;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #d60000;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.input-container button:hover {
    background-color: #b4d4ea;
}

.food-option, .drink-option {
            font-size: 36px;
            margin: 5px;
            cursor: pointer;
            transition: all 0.3s ease;
}
.food-option.selected, .drink-option.selected {
            border: 2px solid #000; /* Outline color */
            border-radius: 50%; /* Rounded border */
            padding: 4px; /* Space between icon and border */
            box-shadow: 0 0 5px rgba(0, 0, 0, 0.5); /* Optional shadow for better visibility */
}

.menu-food-item {
    margin: 10px;
    padding: 10px;
    border: 1px solid #6200ea;
    border-radius: 5px;
    cursor: pointer;
    background-color: #93b91d;
    width:300px;
}

.signature-pad {
            border: 2px solid #000;
            width: 80%;
            height: 250px;
        }
.editing {
    background-color: yellow !important;
}
.edit-cell { display: none; }
.editing .edit-cell { display: table-cell; }

.displaySearchBox {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    width: 85%;
    background-color: #f3f3f3;
}

.displayTable {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 500px;
    width: 85%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.displayTable th {
    background-color: #0082d6;
    color: #ffffff;
    text-align: left;
    vertical-align: text-top;
    padding: 12px 15px;
}
.displayTable td {
    padding: 12px 15px;
}

.displayTable tbody tr {
    border-bottom: 1px solid #dddddd;
}

.displayTable tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.displayTable tbody tr:last-of-type {
    border-bottom: 2px solid #0082d6;
}
.displayTable tbody tr.active-row {
    font-weight: bold;
    color: #009879;
}

.displayTable tr.stafflist-row.selected, tr.activitylist-row.selected{
    background-color: #0082d6;
}

.summarydisplayTable {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 500px;
    width: 85%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.summarydisplayTable th {
    background-color: #f79c3c;
    color: #ffffff;
    text-align: left;
    padding: 12px 15px;
}
.summarydisplayTable td {
    padding: 12px 15px;
}

.summarydisplayTable tbody tr {
    border-bottom: 1px solid #dddddd;
}

.summarydisplayTable tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.summarydisplayTable tbody tr:last-of-type {
    border-bottom: 2px solid #0082d6;
}
.summarydisplayTable tbody tr.active-row {
    font-weight: bold;
    color: #009879;
}

.summarydisplayTable tr.stafflist-row.selected, tr.activitylist-row.selected{
    background-color: #0082d6;
}

.selectorTable {
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 500px;
    width: 85%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.selectorTable th {
    background-color: #0082d6;
    color: #ffffff;
    text-align: left;
    padding: 12px 15px;
}
.selectorTable td {
    padding: 12px 15px;
}

.selectorTable tbody tr {
    border-bottom: 1px solid #dddddd;
}

.selectorTable tbody tr.active-row {
    font-weight: bold;
    color: #009879;
}

.selectorTable tr.stafflist-row.selected, tr.activitylist-row.selected{
    background-color: #0082d6;
}

.staffphoto {
    max-width: 100px;
    max-height: 100px;
    border-radius: 20%;
}

.staffphoto img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 20%;
}
.menuphoto img {
    max-width: 200px;
    padding: 10px;
    margin: 10px;
}
.calendar {
    max-width: 600px;
    max-height: 400px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.transport-arrival {
    margin-bottom: 20px;
}

.transport-arrival-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.transport-arrival-item span {
    margin-right: 10px;
    font-size: 1.1em;
    flex-basis: 200px; /* ensures all labels have the same width */
}

.transport-selector {
    background-color: #0082d6;
    color: #FFFFFF;
    font-weight: bold;
}


.ui-datepicker {
    font-size: 14px;
}
.date-container {
    margin: 20px;
}

/* loading prompt spinner */
.loading {
    width: 2rem;
    height: 2rem;
    border: 5px solid #f3f3f3;
    border-top: 6px solid #0082d6;
    border-radius: 100%;
    margin: auto;
    display: none;
    animation: spin 1s infinite linear;
}
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
.backToTopButton {
  display: none; /* Hidden by default */
  position: fixed; /* Fixed/sticky position */
  bottom: 20px; /* Place the button at the bottom of the page */
  right: 30px; /* Place the button 30px from the right */
  z-index: 99; /* Make sure it does not overlap */
  border: none; /* Remove borders */
  outline: none; /* Remove outline */
  background-color: #0082d6; /* Set a background color */
  color: white; /* Text color */
  cursor: pointer; /* Add a mouse pointer on hover */
  padding: 15px; /* Some padding */
  border-radius: 10px; /* Rounded corners */
  font-size: 18px; /* Increase font size */
}
.backToTopButton:hover {
  background-color: #555; /* Add a dark-grey background on hover */
}
.personal-care {
    cursor: pointer;
}

.salesforceiframe {
    margin: 0;
    padding: 0;
    border: 1px solid #000; /* Can be [none] too */
    display: none;
    width:95%;
    height:300px;
    overflow:hidden;
    position:relative;
}
.salesforceiframe iframe {
    margin: 0;
    padding: 0;
    border: 1px solid #000; /* Can be [none] too */
    display: none;
    position:absolute;
    width:100%;
    height: 100%;
}

.selector-bar {
    display: flex;
    gap: 20px;
    padding: 10px 15px;
    background-color: #dde9f5;
    border-bottom: 1px solid #bdd2e8;
    align-items: center;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.selector-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.selector-group label {
    font-weight: bold;
    white-space: nowrap;
}

.date-selector, .project-selector {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    color: #333333;
}

.date-selector:focus, .project-selector:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}
.chef-btn {
  width: 180px;
  height: 220px;
  border: none;
  border-radius: 18px;
  cursor: pointer;

  /* Chef image */
  background: 
    linear-gradient(to top, rgba(255,255,255,0.9) 20%, transparent 50%),
    url('/css/sendtochef.png') center/cover no-repeat;

  /* Kid-friendly styling */
  font-size: 20px;
  font-weight: bold;
  color: #d62828;
  text-shadow: 1px 1px 3px white;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12px;

  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
  transition: transform .15s ease, box-shadow .15s ease;
}

.chef-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 18px rgba(0,0,0,0.3);
}