.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5em;
}

.data-table th,
.data-table td {
    padding: 0.75em;
    border: 1px solid #ddd;
    text-align: left;
}

.data-table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

.data-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.employee-form {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 2rem auto;
}

.employee-form h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    color: #333;
}

/* Grid layout for the form */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    padding-top: 1rem;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: #444;
}

.form-input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #0077cc;
    box-shadow: 0 0 0 2px rgba(0,119,204,0.15);
}

.form-actions {
    margin-top: 1.5rem;
    text-align: right;
}

.btn-primary {
    padding: 0.6rem 1.25rem;
    background-color: #0077cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: #005fa3;
}

.form-error {
    color: #d9534f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #0077cc;
    margin-right: 0.5em;
    padding: 0;
}

.action-btn:hover {
    color: #005fa3;
}

.inline-form {
    display: inline;
}


.btn-cancel {
    display: inline-block;
    margin-left: 1rem;
    padding: 0.6rem 1.25rem;
    background: #ccc;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
}

.add-employee-btn {
    display: inline-block;
    margin-left: 1rem;
    padding: 0.6rem 1.25rem;
    background: #007e15;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 1rem;
    margin-right: 1rem;
}

.btn-cancel:hover {
    background: #aaa;
    color: #000;
}


footer {
    display: flex;
    justify-content: center;
}

.existing-photo-box {
    margin: 0.5rem 0;
    font-size: 0.95rem;
    background: #f6f6f6;
    padding: 0.5rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.remove-photo-btn {
    background: transparent;
    color: #c00;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}

.remove-photo-btn:hover {
    color: #a00;
}

.photo-display-section {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
}

.photo-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
}

.thumbnail-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ccc;
}

.photo-none {
    font-style: italic;
    color: #888;
    margin-top: 0.5rem;
}

.add-record-btn {
    margin-top: 20px !important;
}

.dashboard-container {
    text-align: center;
    margin-top: 4rem;
}

.big-clock-btn {
    padding: 2rem 4rem;
    font-size: 2rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: background 0.3s ease;
}

.big-clock-btn.clock-in {
    background-color: #28a745;
}

.big-clock-btn.clock-in:hover {
    background-color: #218838;
}

.big-clock-btn.clock-out {
    background-color: #dc3545;
}

.big-clock-btn.clock-out:hover {
    background-color: #c82333;
}

.dashboard-container {
    text-align: center;
    padding: 2rem;
}

.clock-btn {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    margin: 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.clock-in {
    background-color: #28a745;
    color: white;
}

.clock-out {
    background-color: #dc3545;
    color: white;
}

.clock-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* === Modal Overlay === */
.modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

/* === Modal Box === */
.modal-content {
    background: #fff;
    padding: 2rem;
    width: 75%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.25);
    animation: slideDownFade 0.25s ease-out;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* === Headings === */
.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* === Form Fields === */
.modal-content input[type="file"],
.modal-content textarea {
    /* width: 100%; */
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
    margin-bottom: 20px;

}

/* === Textarea specific === */
.modal-content textarea {
    resize: vertical;
    min-height: 100px;
    width: 90%;
}

/* === Buttons === */
.modal-content .btn {
    padding: 0.75rem;
    font-size: 1rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.modal-content .btn-success {
    background-color: #28a745;
    color: white;
}

.modal-content .btn-cancel {
    background-color: #e0e0e0;
    color: #333;
}

.modal-content .btn-success:hover {
    background-color: #218838;
}

.modal-content .btn-cancel:hover {
    background-color: #d0d0d0;
}

/* === Animations === */
@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.job-actions-stacked {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.job-actions-stacked .btn {
    width: 100%;
    max-width: 250px;
    padding: 0.75rem;
    font-size: 1rem;
    text-align: center;
}

.clocked-in-info {
  background: #f8f8f8;
  padding: 1em;
  border-left: 4px solid #007bff;
  margin-bottom: 1em;
  border-radius: 6px;
}

/* Default: 100% width (mobile) */
#job_id {
  width: 100%;
  max-width: 400px; /* optional max width */
  box-sizing: border-box;
}

/* Desktop: wider screen */
@media (min-width: 768px) {
  #job_id {
    width: 40%;
  }

  .modal-content input[type="file"],
    .modal-content textarea {
        /* width: 100%; */
        padding: 0.75rem;
        margin-bottom: 20px;
        font-size: 1rem;
        border: 1px solid #ccc;
        border-radius: 8px;
        background-color: #f9f9f9;
    }
}

.select-wrapper {
  width: 40%;
  margin: 0 auto;
}

.photo-thumbnails {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.photo-thumbnails .thumb {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.thumb-wrapper {
    position: relative;
    display: inline-block;
}

.thumb-wrapper .delete-form {
    position: absolute;
    top: -8px;
    right: -8px;
    margin: 0;
}

.thumb-wrapper .delete-btn {
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.notes-container {
    margin-top: 1.5rem;
    width: 275px;
}

.note-card {
    border: 1px solid #ccc;
    border-left: 4px solid #2b7a78;
    padding: 10px;
    margin-bottom: 1rem;
    border-radius: 8px;
    background: #f9f9f9;
    text-align: left;
}

.thumbnail-wrapper {
    position: relative;
    display: inline-block;
    margin: 5px;
}
.delete-note-btn:hover {
    color: darkred;
}

.delete-photo-btn {
    position: absolute;
    margin-left: -8px;
     background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 14px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.modal-box {
    position: absolute;
  top: 35%;
  left: 45%;
  background: white;
  padding: 2rem 2rem;
  border: 1px solid;
  border-radius: 5px;
}

.date-filters {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    background: rgb(240, 240, 240);
    width: fit-content;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 3px 4px rgba(0,0,0,0.7);
}

.dataTables_wrapper {
    border: 1px solid #000000;
    padding: 18px;
    border-radius: 5px;
    box-shadow: 0 3px 4px rgba(0,0,0,0.7);

}

#timeclock-detail {
    width: 100% !important;
}

#timeclock-table a {
    text-decoration: none;
    color:#000;

}

.employee_selector_row {
    margin-top: 1rem;
}

#total-hours {
    font-size: larger;
    cursor: pointer;
}

.add_punch_row {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

#map {
  flex: 1;
  height: 300px;
}

.logout-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
}

/* Responsive: you can tweak this to hide dropdown hover and make it click-to-open on small screens */
@media (max-width: 768px) {

}

  .login_thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #ccc;
    margin-right: 10px;
  }

  .login_thumbnail:hover::after {
  content: attr(data-full);
  position: absolute;
  z-index: 9999;
}

