/* Global reset replacement - scoped to dashboard container to avoid breaking WP theme */
.dashboard-container * {
  box-sizing: border-box;
}

.dashboard-container {
  color: #333;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu,
    Cantarell, "Helvetica Neue", sans-serif;
  /* Reset margins and padding for internal elements if needed, but not globally */
}

/* Original Styles */

.dashboard-container {
  display: flex;
  gap: 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.left-section {
  flex: 3;
  background: white;
  border-radius: 12px;
}

.right-section {
  flex: 1;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgb(255, 255, 255);
  padding: 20px;
}

.header {
  padding: 20px;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  background: #f6f6f6 !important;
  gap: 15px;
}

.header-row-1 {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-row-1 h1 {
  font-size: 24px;
  color: #333;
  font-weight: normal;
  margin: 0; /* Reset margin for h1 inside header */
}

.header-row-2 {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.header-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.header-content p {
  color: #666;
  font-size: 14px;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 30px;
  align-items: center;
}

.patients-seen-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 15px;
  border-right: 1px solid #e0e0e0;
}

.patients-seen-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}
span.legend-label {
  font-size: 13px;
  color: #4a5568;
  font-weight: 500;
}

.indicator-dots {
  display: flex;
  gap: 8px;
}

.indicator-dot {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.orange {
  background-color: #ff6b3d;
}

.dot.yellow {
  background-color: #ffc107;
}

.dot.green {
  background-color: #4caf50;
}

.save-btn {
  padding: 10px 40px;
  background-color: #33d69f;
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  height: fit-content;
}

.save-btn:hover {
  background-color: #2bc58d;
}

.save-btn:active {
  background-color: #25b47f;
}

.save-success {
  background-color: #33d69f;
}

.save-success:hover {
  background-color: #33d69f;
}

.filter-select {
  padding: 8px 35px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 130px;
}

.filter-select:focus {
  outline: none;
  border-color: #33d69f;
}

.week-title {
  font-size: 16px;
  color: #333;
  font-weight: bold;
}

.calendar-table {
  width: 100%;
  border-collapse: collapse;
}

.calendar-table th {
  text-align: center;
  padding: 12px;
  font-weight: normal;
  color: #666;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
  background-color: #f9f9f9;
}

.calendar-table td {
  padding: 12px 8px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
}
.calendar-table .input-cell {
  background-color: #fdeee8;
  position: relative;
  padding-left: 15px;
}

.calendar-table .input-cell::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  background-color: #ff6b3d;
  border-radius: 6px 0px 0px 6px;
}

.day-label {
  font-weight: bold;
  color: #333;
  font-size: 14px;
  background-color: #fff;
  width: 120px;
}

.number-input {
  width: 60px;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  text-align: center;
  background-color: white;
}

.summary-input {
  width: 70px;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
  text-align: center;
  background-color: white;
}

.number-input:focus,
.summary-input:focus {
  outline: none;
  border-color: #4a90e2;
  background-color: #fff;
}

.email-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  background-color: #eeeeee;
  margin: 45px 0px 25px 0px;
  border-radius: 4px;
}

.email-title {
  font-size: 16px;
  color: #333;
  font-weight: bold;
  margin-bottom: 5px;
}

.email-flex-container {
  display: flex;
  gap: 20px;
  align-items: center;
}

.email-flex-item {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.email-select-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.email-label {
  color: #666;
  font-size: 14px;
  margin-bottom: 5px;
}

.email-select {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background-color: #f0f0f0;
  width: 100%;
  height: 40px;
  cursor: pointer;
}

.email-select:focus {
  outline: none;
  border-color: #999;
  background-color: white;
}

.email-btn {
  padding: 10px 20px;
  background-color: #27ae60;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  margin-top: 5px;
  height: 40px;
}

.email-btn-green {
  padding: 10px 20px;
  background-color: #00c569;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  height: 40px;
  font-weight: 500;
}

.email-btn-green:hover {
  background-color: #00b35e;
}

.email-btn-green:active {
  background-color: #00a053;
}

.email-btn:hover {
  background-color: #219653;
}

.email-link {
  color: #4a90e2;
  text-decoration: none;
  font-size: 14px;
  display: block;
  margin-top: 5px;
}

.email-link:hover {
  text-decoration: underline;
}

.summary-title {
  font-size: 20px;
  color: #333;
  margin-bottom: 15px;
  font-weight: normal;
}

.stats-container {
  margin-bottom: 30px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px dashed #e0e0e0;
  font-size: 14px;
}

.stat-label {
  color: #666;
}

.stat-value {
  color: #333;
  font-weight: bold;
}

.section-divider {
  height: 1px;
  background-color: #e0e0e0;
  margin: 20px 0;
}

.sub-title {
  font-size: 16px;
  color: #333;
  margin: 20px 0 10px;
  font-weight: bold;
  padding-bottom: 5px;
  border-bottom: 1px solid #eee;
}

.today-highlight {
  background-color: #f3f0ff;
  border-bottom: 3px solid #7c3aed !important;
}

.today-highlight::before {
  background-color: #7c3aed !important;
}

.today-input {
  border-color: #7c3aed;
  background-color: #fefcff;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 20px 0;
}

.footer-note {
  color: #000;
  font-size: 12px;
  text-align: left;
  margin-top: 40px !important;
}

.save-message {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #27ae60;
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.save-message.show {
  opacity: 1;
}

.email-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #3498db;
  color: white;
  padding: 12px 20px;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 1000;
}

.email-message.show {
  opacity: 1;
}

.calendar-table tr:last-child td {
  border-bottom: none;
}
.calendar-table td:first-child {
  padding-left: 15px;
}

.calendar-table th:first-child {
  padding-left: 15px;
}
.day-header {
  color: #666;
  font-weight: normal;
}

.input-cell {
  text-align: center;
}

.calendar-table {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.calendar-table th,
.calendar-table td {
  border-right: 1px solid #f0f0f0;
}

.calendar-table th:last-child,
.calendar-table td:last-child {
  border-right: none;
}

.edit-section {
  margin-top: 10px;
}

.edit-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  border-bottom: 1px dashed #e0e0e0;
  font-size: 14px;
}

.edit-label {
  color: #666;
}

.readonly-value {
  color: #333;
  font-weight: bold;
  min-width: 50px;
  text-align: right;
}
