/* Final POS Dashboard Styles
 * Styles specific to the dashboard
 */


.finalpos-download-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: start;
}

/* Download app section */
.finalpos-app-downloads {
  display: flex;
  justify-content: space-between;
  width: 100%;
}


.download-app-icon:hover {
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);

}

.download-app-icon img {
  width: 100%;
  height: 100%;
}

/* Sync Status Styles */
.finalpos-sync-status {
  display: flex;
  /* flex-wrap: wrap; */
  gap: 12px;
  margin-top: 16px;
  width: 100%;
  max-width: 500px;
}

.sync-item {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 4px;
  background-color: #f8f8f8;
  font-size: 14px;
  gap: 6px;
}


.sync-category {
  font-weight: 500;
  margin-right: 4px;
}

.sync-status {
  font-weight: 400;
}

/* Custom success styles with SVG */
.sync-done {
  background-color: #e6f4ff;
  position: relative;
  padding-left: 36px;
}

.sync-done:before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url('../img/checkmark.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Progress status */
.sync-progress {
  background-color: #eef4fb;
  position: relative;
  padding-left: 36px;
}

.sync-progress:before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border: 2px solid #1678cb;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 2s linear infinite;
}

/* Failed status */
.sync-failed {
  background-color: #fbeeee;
  position: relative;
  padding-left: 36px;
}

.sync-failed:before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%23d32f2f' stroke-width='2' fill='none'/%3E%3Cpath d='M8 8L16 16M8 16L16 8' stroke='%23d32f2f' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Unknown status */
.sync-unknown {
  background-color: #f8f5e9;
  position: relative;
  padding-left: 36px;
}

.sync-unknown:before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24'%3E%3Ccircle cx='12' cy='12' r='10' stroke='%23e6a700' stroke-width='2' fill='none'/%3E%3Cpath d='M12 8v4M12 16v.1' stroke='%23e6a700' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Remove any .icons styling */
.sync-item .icons {
  display: none !important;
}

@keyframes spin {
  0% {
    transform: translateY(-50%) rotate(0deg);
  }
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Log type column: WordPress notice classes as inline text color (no box styling). */
.finalpos-logs-table td.column-type .finalpos-log-type {
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  border-radius: 0;
}

.finalpos-logs-table td.column-type .finalpos-log-type.notice-error {
  color: #d63638;
}

.finalpos-logs-table td.column-type .finalpos-log-type.notice-warning {
  color: #dba617;
}

.finalpos-logs-table td.column-type .finalpos-log-type.notice-info {
  color: #2271b1;
}

.finalpos-logs-table td.column-type .finalpos-log-type.notice-success {
  color: #00a32a;
}

.finalpos-logs-table td.column-type .finalpos-log-type.notice-debug {
  color: #646970;
}

.finalpos-logs-table td.column-type .finalpos-log-type.notice:not(.notice-error):not(.notice-warning):not(.notice-info):not(.notice-success):not(.notice-debug) {
  color: #646970;
}

