
/* More space above and below links on touch devices */

@media (pointer: coarse) {
    a {
        display: inline-block; /* Ensures padding applies properly */
        padding: 12px 0; /* Increase vertical tap area */
    }
}

body{
    font-family: Arial, Helvetica, sans-serif;
    margin: 0.2em;
}

.top_nav_bar{
    padding-right: 0.5em;
    text-align: right;
}

.header{
    background: #37A000;
    padding-left: 0.5em;
    margin: 0.3em;
    color: #ffffff;
    border-radius: 5px;
}

.header h1{
    margin-block-start: 0.34em;
    margin-block-end: 0.5em;
    font-size: 1.7em;
}

h1{
    margin-block-end: 0.4em;
}

h2{
    margin-block-end: 0.25em;
}

h3{
    margin-block-start: 1.3em;
    margin-block-end: 0.8em;
}

h4{
    margin-block-end: 0.5em;
}

p{
    margin-block-start: 0.8em;
    margin-block-end: 0.4em;
}

.main_content{
    margin: 0.3em 1em;
}

.main_content p{
}

.footer{
    background: #37A000;
    text-align: center;
    color: #ffffff;
    padding: 5px 30px;
    font-size: 1.5em;
    /* font-style: italic; */
}

.footer a{
    color: #ffffff;
}

.card{
    padding: 00px 15px;
    margin: 10px;
}

table {
    border-collapse: collapse; /* Ensure borders collapse for cleaner table look */
}

td {
    padding-right: 1em; /* Add padding to the right of each cell */
}

td:last-child {
    padding-right: 0; /* Remove padding from the last cell in each row */
}

.day_card{
    border: 1px solid rgba(112, 112, 112, 0.56);
    border-radius: 15px;
    padding: 00px 15px;
    margin: 10px;
    box-shadow: 1px 1px rgba(112, 112, 112, 0.3);
    color: #707070;
}

.day_card h2{
    font-size: 1.1em;
}

.day_card ul{
	list-style-type: none;
	/* margin: 0; */
	padding: 0;
}

.day_card ul li{
    font-size: 1em;
}


li {
    margin-bottom: 0.4em; /* Adjust the value as needed */
}

.cleaning { margin-bottom: 5px; }
.fourth_cleaning { margin-bottom: 15px; }


.image-wrapper {
    position: relative;
    width: 80vw;
    height: 65vh;
    max-width: 80%;
    max-height: 65%;
    margin: auto;
}

.responsive-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.admin-user-list {
    /* border-collapse: separate;
    border-spacing: 0.2em 0; */
}
.admin-user-list thead {
    font-style: italic;
}

/* Calendar */

.calendar-table {
    border-collapse: separate;
    border-spacing: 0.1em 0;
}
.calendar-date-row {
    font-size: 1.5em;
    font-weight: bold;
}

.calendar-cleaning-row {
}

.calendar-cleaner-row {
    font-size: 1em;
    font-weight: bold;
    font-style: italic;
}

.calendar-comment-row {
    font-size: 0.8em;
    font-style: italic;
}
.calendar-comment-row td {
     padding-left:1em;
}

.calendar-spacer-row {
    height: 1em;
}

.calendar-header-row td {
    font-size: 0.8em;
    font-style: italic;
    text-decoration: underline;
}

/* for photos */
.preview {
    display: flex;
    flex-wrap: wrap;
}
.preview img {
    margin: 10px;
    max-width: 100px;
    max-height: 100px;
}

.photo-container {
    display: flex;
    flex-wrap: wrap;
}


/* show & hide */
.show-hide-content {
    display: none;
    margin-top: 10px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
}
.show-hide-button {
    margin-bottom: 10px;
}

/* Buttons, primary is for submit/create, and secondary is for cancel */

/* Basic input button styles */
input[type="submit"] {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Primary input button */
input.primary {
    background-color: #4CAF50; /* Green */
    color: white;
}

/* Secondary input button */
input.secondary {
    background-color: #e0e0e0; /* Light gray */
    color: #333;
}


.planning-table {
    border-collapse: collapse;
}

.planning-table th, .planning-table td {
    border: 1px dotted #000;
    padding-left: 5px;
    padding-right: 5px;
    text-align: center;
}

.hours-table td {
    border: 1px dotted #000;
    padding-left: 1.2em;
    padding-right: 0.5em;
    text-align: right;
}


.work-history-table td {
    border: 1px dotted #000;
    padding-left: 12px;
    padding-right: 5px;
}


/* BEGIN: date picker */

#date-picker-container {
    position: relative;
}

#date-picker {
    display: none;
    position: fixed; /* Changed from absolute to fixed */
    width: 90vw;
    max-width: 400px;
    max-height: 90vh;
    background: white;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 10px;
    box-sizing: border-box;
    overflow-y: auto;
}

.calendar-header {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.date-button {
    width: 100%;
    padding: 15px 0;
    text-align: center;
    border: none;
    background-color: #f0f0f0;
    cursor: pointer;
    border-radius: 4px;
    font-size: 16px;
}

.date-button:hover {
    background-color: #e0e0e0;
}

.date-button.adjacent-month {
    color: #808080;
}

.date-button.selected {
    background-color: #007bff;
    color: white;
}

.week-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 5px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.navigation-buttons button {
    padding: 10px;
    font-size: 14px;
    border: none;
    background-color: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
}

.navigation-buttons button:hover {
    background-color: #e0e0e0;
}

.cancel-button {
    display: block;
    width: 100%;
    padding: 15px 0;
    margin-top: 10px;
    background-color: #ff4d4d;
    color: white;
    text-align: center;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.cancel-button:hover {
    background-color: #e60000;
}

/* END: date picker */

/* https://css-tricks.com/rotated-table-column-headers/ */

/* BEGIN: Ajax post links */

/* static/post_link.css */
.post-link {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}

.post-link.posting {
  background-color: #e0e0e0;
  color: #555;
  pointer-events: none;
}

.post-link.error {
  background-color: #ffd6d6;
  color: #8b0000;
}

/* END: Ajax post links */

.guest-message {
    background-color: lightpink;
}

.cohost-message {
    background-color: lightblue;
}

.planning-calendar {
  border-collapse: collapse;
  width: auto;
  table-layout: auto;
}

.planning-calendar td,
.planning-calendar th {
  border: 1px dotted lightgray;
}

/* Column group outlines (only between the two groups) */
.planning-calendar colgroup.black-border {
  border: 1px solid black;
}
