/* Record Data Styles - Check-in/Check-out System */

/* Error Messages */
.error-msg {
  color: red;
  font-size: 12px;
}

/* Latest Check-in Box */
.latest-checkin-box {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #f9f9f9;
}

.latest-checkin-title {
  margin-top: 0;
}

/* Buttons */
.btn-checkout {
  background-color: #e60303;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
}

.btn-edit-checkout {
  background-color: #282b85;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  height: 45px;
  cursor: pointer;
  white-space: nowrap;
  min-width: 150px;
  display: inline-block;
}

.btn-edit-checkout:hover {
  background-color: #1f2166;
}

.btn-save-checkout {
  background-color: #e60303;
  color: white;
  padding: 10px 24px;
  border: none;
  border-radius: 4px;
  height: 45px;
  cursor: pointer;
  white-space: nowrap;
  min-width: 220px;
  display: inline-block;
}

.btn-save-checkout:hover {
  background-color: #c20202;
}

.btn-save-checkout-edit {
  background-color: #e60303;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
}

.btn-cancel {
  background-color: #6c757d;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  height: 45px;
  cursor: pointer;
}

.btn-cancel:hover {
  background-color: #5a6268;
}

/* Checkout Preview Grid */
.checkout-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

.full-width-input {
  width: 100%;
}

.grid-span-full {
  grid-column: span 5;
  margin-top: 8px;
}

.grid-button-container {
  grid-column: span 5;
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

/* Text Styles */
.checkin-time-display {
  padding: 8px;
  font-size: 14px;
}

/* Modal Overlay */
.modal-overlay {
  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: 9999;
}

/* Modal Content */
.modal-content {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content-large {
  max-width: 500px;
}

.modal-close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: none;
  font-size: 20px;
  cursor: pointer;
  color: #000;
}

/* Modal Icons */
.modal-icon-success {
  font-size: 60px;
  color: green;
}

.modal-icon-error {
  font-size: 40px;
  color: red;
}

.modal-icon-loading {
  font-size: 48px;
  color: #e60303;
  margin-bottom: 16px;
}

.modal-icon-map {
  text-align: center;
  font-size: 48px;
  color: #28a745;
  margin-bottom: 16px;
}

/* Modal Titles */
.modal-title {
  margin: 16px 0;
  font-size: 18px;
  font-weight: bold;
}

.modal-title-large {
  text-align: center;
  margin: 0 0 20px 0;
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.modal-title-small {
  margin: 16px 0;
  font-size: 16px;
  font-weight: bold;
}

.modal-subtitle {
  color: #666;
  margin-top: 8px;
}

/* Modal Button Container */
.modal-button-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.modal-button-container-large {
  margin-top: 20px;
}

/* Modal Buttons */
.modal-btn-confirm {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #e60303;
  color: #fff;
  cursor: pointer;
}

.modal-btn-confirm-large {
  padding: 10px 20px;
  font-size: 14px;
}

.modal-btn-cancel {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  background: #6c757d;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.modal-btn-secondary {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #6c757d;
  color: #fff;
  cursor: pointer;
}

/* Loading State */
.loading-state {
  text-align: center;
  padding: 20px;
}

.loading-text {
  margin: 0;
  font-size: 18px;
  font-weight: bold;
}

/* Distance Summary */
.distance-summary-box {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.summary-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  font-size: 14px;
}

.summary-label {
  font-weight: bold;
  color: #666;
}

.summary-value {
  color: #333;
}

.summary-value-primary {
  color: #e60303;
  font-weight: bold;
  font-size: 16px;
}

.summary-value-info {
  color: #007bff;
  font-weight: bold;
  font-size: 16px;
}

/* Error State */
.error-state {
  text-align: center;
  padding: 20px;
}

.error-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: bold;
}

.error-message {
  color: #666;
  margin-bottom: 16px;
}

.modal-icon-error-color {
  color: #dc3545;
}

