#summaryGrid tfoot tr th {
  cursor: pointer;
  text-decoration: underline;
  color: blue;
}

#header,#main {
  padding: 25px;
}

#photoPreview {
  padding: 10px;
  border: solid 1px;
  border-radius: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  max-width: 400px;
  max-height: 600px;
  background: #fbf8f8;
}

#photoPreview img {
  width: 100%;
  max-height: 400px;

}


#claimControlsHolder  progress {
  width: 90%;
  height: 30px;
}

#spinHolder  progress {
  width: 90%;
  height: 30px;
}


#spinHolder > div {
  padding: 10px;
  border: solid 1px;
  border-radius: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  max-width: 600px;
  background: #fbf8f8;
}

#spinHolder > div.warning {
  background: cornsilk;
}

.faded {
  opacity: 0.6;
}

.faded:hover {
  opacity: 1;
}

#claimControlsHolder > div {
  padding: 10px;
  border: solid 1px;
  border-radius: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  max-width: 600px;
  background: #fbf8f8;
}

#claimControlsHolder > div.warning {
  background: cornsilk;
}

#claimControlsHolder > div:hover {
  opacity: 1;
}

p.warning {
  border-radius: 2px;
  padding: 5px;
  background: cornsilk;
  border: solid 1px #eeeeee
}

#claimControlsHolder {
  display: none
}

.pendingUploads,.readyToPublish {
  display: none;
}

button {
  cursor: pointer;
}

body {
  font-family: sans-serif;
  background: #eeeeee;
}

#main {
    margin:10px;
}
a {
  color: #369;
}

input:disabled,select:disabled {
  color:black !important;
}
input.bigCheckbox {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin:10px;
}
.faded{
  opacity: 0.5;
}
#log {
  display: none;
}
/* #logout {
     line-height: 12px;
     width: 50px;
     font-size: 8pt;
     font-family: tahoma;
     margin-top: 10px;
     margin-right: 20px;
     position:absolute;
     top:0;
     right:0;
     padding: 10px !important;
 } */

 .foot {
  margin-top: 40px;
 }
#notes {
  margin: 10px;
  font-size: 1.1em;
  color: #333;
  text-align: justify;
}
.note {
  padding: 10px;
  font-size: 1.1em;
  color: #333;
  text-align: justify;
}

#page-dropzone {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.1);
  display: none; /* Show when dragging */
  align-items: center;
  justify-content: center;
  z-index: 9999;
  pointer-events: none; /* So it doesn't block interaction */
}
#page-dropzone.active {
  display: flex;
  pointer-events: all;
  background: rgba(0,0,0,0.25);
}



.safari.btn-warning {
  border: 1px dashed #ccc;
  border-radius: 20px;
  min-height: 50px;
  margin: 10px auto;
  padding: 10px;

  /* Add these lines for centering */
  display: flex;
  align-items: center;    /* vertical centering */
  justify-content: center; /* horizontal centering */
  text-align: center;      /* center text if it wraps */
}

#dropzone1 {
  border: 2px dashed #ccc;
  border-radius: 20px;
  min-height: 100px;
  margin: 50px auto;
  padding: 20px;

  /* Add these lines for centering */
  display: flex;
  align-items: center;    /* vertical centering */
  justify-content: center; /* horizontal centering */
  text-align: center;      /* center text if it wraps */
}

#dropzone1:hover {
  background-color: #f0f0f0;
  cursor: pointer;
}


#albumName,#claimCodeDescription,#username,#password,.bigInput {
  font-size: large;
  padding: 20px;
}

.selected {
  opacity: 0.6 !important;
}

.drop-area {

  /* background-image: url(/assets/target.png); */
  background-position: center;
  background-repeat: no-repeat;
  background-color: white;
  border: 2px dashed #ccc;
  border-radius: 20px;

  min-height: 200px;
  margin: 50px auto;
  padding: 20px;
}
.drop-area.highlight {
  border-color: purple;
}

p {
  margin-top: 0;
}
.my-form {
  margin-bottom: 10px;
}

h4,small {
    pointer-events: none;
}

#gallery {
  overflow: hidden;
  margin-top: 10px;
}
#gallery img {
  width: 150px;
  margin-bottom: 10px;
  margin-right: 10px;
  vertical-align: middle;
}

#gallery div.preview-holder {
  float: left;
  display: block;

}

.preview-holder progress {
  margin-left: 10%;
  width: 80%;
}

.preview-holder.uploading img {
  opacity: 0.25;
}

.preview-holder.uploaded img {
  opacity: 1;
}

.date-title {
  border-bottom: solid 1px black;

}




#gallery div.date-holder {
  clear: both;
  width: 100%;

}

#progress-bar {
  width:100%;
}

.button {
  display: inline-block;
  font-size: large;
  padding: 10px;
  background: #ccc;
  cursor: pointer;
  border-radius: 5px;
  border: 1px solid #ccc;
  margin-bottom: 5px;
}
.button:hover {
  background: #ddd;
}
.button.success {
  background: #5cb85c;
}
.button.danger {
  background: #dc3545!important;
}
.button.success:hover {
  background: lightgreen;
}
#fileElem {
  display: none;
}

#updateUserInfo {
  margin: 25px;
}

.hidden {
  display: none !important;
}

#gallery.hide-previews .preview-holder {
  display: none !important;
}

#log {

  padding-top: 30px;
  margin-left: 10px;
  max-height: 300px;
  overflow: auto;
  font-weight: lighter;
  font-size: smaller;
}

#cover-spin {
    position:fixed;
    width:100%;
    left:0;right:0;top:0;bottom:0;
    background-color: rgba(255,255,255,0.9);
    z-index:9999;
}

#cover-spin .message {
  text-align: center;
  margin-top: 100px;
}

@-webkit-keyframes spin {
	from {-webkit-transform:rotate(0deg);}
	to {-webkit-transform:rotate(360deg);}
}

@keyframes spin {
	from {transform:rotate(0deg);}
	to {transform:rotate(360deg);}
}

#cover-spin::after {
    content:'';
    display:block;
    position:absolute;
    left:48%;top:40%;
    width:40px;height:40px;
    border-style:solid;
    border-color:black;
    border-top-color:transparent;
    border-width: 4px;
    border-radius:50%;
    -webkit-animation: spin .8s linear infinite;
    animation: spin .8s linear infinite;
}

#modal-spin-bar {
  width:100%;
  margin-top: 40px;
}

.modal-fader {

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 99998;
    background: rgba(0,0,0,0.8);
}

.modal-window {



    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 450px;
    min-width: 200px;
    max-width: 80%;
    min-height: 100px;

    font-family: sans-serif;
    top: 150px;

}

/* The preprocessing / Please-Wait modal carries the per-image checklist and
   technical log, so give it more width than the default confirm/error dialogs. */
#modal-spin {
    width: 760px;
    max-width: 94%;
}

/* Per-image preprocessing checklist */
.upload-tally {
    text-align: center;
    font-weight: 600;
    margin: 8px 0 4px;
    color: #333;
}
.upload-checklist {
    text-align: left;
    max-width: 460px;
    margin: 6px auto 0;
    font-size: 14px;
}
.upload-checklist .checklist-head {
    font-weight: 600;
    margin-bottom: 6px;
    word-break: break-word;
}
.upload-checklist .step-row {
    display: flex;
    align-items: center;
    padding: 3px 0;
    color: #888;            /* pending */
}
.upload-checklist .step-icon {
    display: inline-block;
    width: 1.4em;
    text-align: center;
    margin-right: 8px;
    font-weight: 700;
}
.upload-checklist .step-pending { color: #9aa0a6; }
.upload-checklist .step-working { color: #1a73e8; font-weight: 600; }
.upload-checklist .step-done    { color: #188038; }
.upload-checklist .step-done .step-icon { color: #188038; }
.upload-checklist .step-skip    { color: #c5221f; }
.upload-checklist .step-skip .step-icon { color: #c5221f; }
.upload-checklist .step-row em { font-style: normal; color: #1a73e8; font-size: 12px; }

.upload-skip-holder { margin: 10px 0 2px; }
.upload-details-toggle {
    margin-top: 10px;
    font-size: 12px;
    color: #5f6368;
    cursor: pointer;
    user-select: none;
}
.device-health {
    text-align: center;
    font-size: 12px;
    color: #5f6368;
    margin: 2px 0 6px;
}

/* Live upload-speed sparkline under the progress bar (auto-scaling). Shown only
   during the upload phase (drawSpeedGraph toggles inline display once there are
   samples); the :not(.uploading) rule guarantees it never lingers into the
   preprocessing/saving/other uses of this shared modal. */
.upload-speed-graph {
    display: none;          /* shown by drawSpeedGraph once there are samples */
    width: 100%;
    height: 44px;
    margin: 4px 0 0;
    background: #f6f8fa;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
}
#modal-spin:not(.uploading) .upload-speed-graph { display: none !important; }

/* "Previous trips stored on this device" indicator + cleanup panel. */
.old-claims {
    margin: 10px 0;
    padding: 8px 12px;
    background: #fff8e1;
    border: 1px solid #ffe8a3;
    border-radius: 4px;
    font-size: 13px;
    color: #5f4b00;
}
.old-claims .button { margin: 6px 0 0; white-space: nowrap; }
.old-claims-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.old-claims-toggle {
    cursor: pointer;
    color: #1a73e8;
    font-weight: 600;
    user-select: none;
    white-space: nowrap;
}
.old-claims-detail { margin-top: 8px; }
.old-claims-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.old-claims-all {
    border-bottom: 1px solid #ffe8a3;
    margin-bottom: 4px;
    padding-bottom: 6px;
}
.old-claim-code { font-weight: 600; }
.old-claim-meta { margin-left: auto; font-size: 12px; color: #7a6a2f; }
#oldClaimsList { max-height: 220px; overflow: auto; margin: 4px 0 8px; }
.old-claims-empty { color: #7a6a2f; padding: 6px 0; }
.old-claims-note { font-size: 12px; color: #7a6a2f; margin: 6px 0 0; }

/* Preprocessing UI shows only during a scheduling run (uploader.mjs toggles
   the .preprocessing class), so it never lingers into the upload phase. */
#modal-spin .upload-tally,
#modal-spin .device-health,
#modal-spin .upload-checklist,
#modal-spin .upload-skip-holder,
#modal-spin .upload-details-toggle { display: none; }
#modal-spin.preprocessing .upload-tally,
#modal-spin.preprocessing .device-health,
#modal-spin.preprocessing .upload-checklist,
#modal-spin.preprocessing .upload-skip-holder,
#modal-spin.preprocessing .upload-details-toggle { display: block; }
#modal-spin:not(.preprocessing) #uploadTech { display: none !important; }

.modal-window .button {
  margin-top: 20px;
  margin-right: 10px;
}

.modal-window h1,
.modal-window h2,
.modal-window h3,
.modal-window h4,
.modal-window h5,
.modal-window h6 {
    margin: 0;
}

#notesTop {
  padding-left: 25px;
}

.changePassword {
  display: none
}

#errorHolder {
  background: white;
  max-height: 450px;
  overflow: auto;
  padding: 15px;
}

#errorItems {

}

#errorItems small {
  margin-left: 10px;
}

#errorItems p {
  margin-left: 10px;
}

#claimNote,#loginMessage {
  font-size: small;
  color: red;
  margin-left:10px;
}

#cover-spin-notes {
  margin-top: 10px;
  font-style: italic;
}

.error {
    font-size: 0.85em;
    color: red;
    font-style: italic;
}


.photo-select {
  text-align: center;
}

.photo-select .thumb {
  max-width: 256px;
  max-height: 256px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.photo-select .file-info {
  display: flex;
  align-items: center;
  /* justify-content: center; */
  margin-top: 5px;
}

.photo-select .file-info input {
  margin-right: 10px;
}

.photo-select .bigCheckbox {
  margin-top: 0;
}

.image-container {
  position: relative;
  width: 256px; /* Set the desired width */
  height: 256px; /* Set the desired height */
  background-color: #f0f0f0; /* Placeholder color */
  overflow: hidden;
}
/* Hide shimmer effect when loaded */
.image-container.loaded {
  background: none; /* Remove shimmer background */
  animation: none; /* Stop animation */
}

.lazy-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out; /* Smooth fade-in effect */
}

.image-container.loaded .lazy-image {
  opacity: 1;
}

.image-container {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  from {
    background-position: -200% 0;
  }
  to {
    background-position: 200% 0;
  }
}