/* MealSuite — base UI (Light Theme) */
body {
  margin: 0;
  background: #f9f9fb;
  color: #1a1a1a;
  font-family: Inter, system-ui, Arial, sans-serif;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-weight: 700;
  color: #222;
}

.card {
  background: #fff;
  border: 1px solid #e2e5ea;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/*boxes on request form*/
/* Make widths predictable everywhere */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

/* Grid columns that actually shrink (prevents mid/right overlap) */
.row   { display:grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap:14px; align-items:start; }
.row-3 { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:14px; align-items:start; }

/* Let grid children shrink instead of overflowing their column */
.row > div, .row-3 > div { min-width:0; }

/* Ensure form controls never stick out of their cell */
.input, select, textarea {
  display:block;
  width:100%;
  max-width:100%;
  min-width:0;              /* critical for Safari */
}

/* Optional: selects won’t clip chevrons on iOS */
select { padding-right: 28px; }

/* Stack on small screens to avoid any squeeze */
@media (max-width: 920px){
  .row, .row-3 { grid-template-columns: 1fr; }
}


/* end boxes on request form */




.input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  color: #111;
  font-size: 14px;
}

.input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #597bff;
  outline-offset: 1px;
}

.button {
  background: #ff5a7a;
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  cursor: pointer;
  transition: filter 0.1s ease, transform 0.1s ease;
}

.button:hover {
  filter: brightness(1.05);
}

.button.secondary {
  background: #e4e7ec;
  color: #222;
}

.badge {
  background: #eef1f7;
  color: #555;
  padding: 4px 8px;
  border-radius: 999px;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid #e5e8ef;
  padding: 10px;
  text-align: left;
  color: #222;
}

/* Calendar container */
.calendar {
  background: #fff;
  border: 1px solid #dce0e6;
  border-radius: 16px;
  overflow: hidden;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid #e3e7ee;
  background: #f6f7fa;
}

/* Month grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

/* Cells */
.calendar-cell {
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 8px;
  position: relative;
  background: #fff;
}

.calendar-cell.header-cell {
  min-height: 34px;
  background: #f3f5f8;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.2px;
}

.calendar-cell.day-cell {
  min-height: 120px;
  padding-top: 22px;
  padding-bottom: 10px;
  transition: background 0.15s ease;
}

.calendar-cell.day-cell:hover {
  background: #f9fafb;
}

/* Date chip */
.calendar-cell .date {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 3;
  font-size: 12px;
  color: #777;
  background: rgba(255, 255, 255, 0.9);
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.1);
}

/* Weekend + today indicators */
.calendar-cell.sun {
  background: #fafbfc;
}

.calendar-cell.sat {
  background: #fafbfc;
}

.calendar-cell.today {
  box-shadow: inset 0 0 0 2px #6aa8ff, inset 0 0 0 4px rgba(106, 168, 255, 0.15);
  border-radius: 12px;
}

/* Tiles 
.tile {
  margin-top: 8px;
  background: #e9f4ff;
  color: #0a0a0a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.15;
  padding: 10px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-left: 4px solid rgba(0, 0, 0, 0.1);
  transition: transform 0.08s ease, box-shadow 0.12s ease, filter 0.1s ease;
}
*/


.tile {
  font-size: 10px;
  line-height: 1.2;
  padding: 4px 6px;
  margin-top: 4px;

  white-space: normal;
  overflow: hidden;

  /* roughly 2 lines */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}



.tile:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.1);
}

.tile .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* Travel tile 
.tile.travel {
  padding: 8px 12px;
  background: #f2f2f2;
  color: #333;
  border: 1px solid #ddd;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.05) 0,
    rgba(0, 0, 0, 0.05) 6px,
    rgba(255, 255, 255, 0) 6px,
    rgba(255, 255, 255, 0) 12px
  );
*/
 
 .tile.travel {
  font-size: 10px;
  padding: 3px 6px;
}   
    
    
    
    
    
    
    
}

/* Legend */
.legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.legend .chip {
  display: flex;
  gap: 8px;
  background: #f0f2f6;
  color: #333;
  border: 1px solid #ddd;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  padding: 6px 10px;
  border-radius: 999px;
  align-items: center;
}

.legend .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}


.legend {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.legend .chip {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #f0f2f6;
  white-space: nowrap;
}

.legend .dot {
  width: 8px;
  height: 8px;
}

.tile {
  font-size: 10px;
  line-height: 1.2;
  padding: 4px 6px;
  margin-top: 4px;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tile-main {
  display: block;
}

.tile-spec {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 600;
  opacity: 0.85;
}

/* Make multi-day date blocks wider so columns stay side-by-side */
.sched-date-range {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 120px;      /* <-- this is the key */
}

/* Each small date column */
.sched-date-col {
  display: flex;
  flex-direction: column;
  text-align: center;
  line-height: 1.1;
}

/* Divider between start/end */
.sched-date-sep {
  width: 1px;
  height: 32px;
  background: #e5e7eb;
  border-radius: 999px;
}

/* Scrollbars */
.calendar ::-webkit-scrollbar {
  height: 8px;
  width: 8px;
}

.calendar ::-webkit-scrollbar-thumb {
  background: #d1d1d1;
  border-radius: 8px;
}