/* ======================================
ONLINE SERVICES
====================================== */

.online-services-page {
  padding: 16px;
  padding-bottom: 120px;
}

/* ======================================
HEADER
====================================== */

.online-services-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}

.online-services-header-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.online-services-back-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  background: #f3f4f6;
  font-size: 20px;
  cursor: pointer;
}

.online-services-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #111827;
}

.online-services-subtitle {
  margin-top: 6px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.online-services-add-btn {
  height: 48px;
  border: none;
  border-radius: 16px;
  background: #2563eb;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

/* ======================================
LIST
====================================== */

.online-services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ======================================
CARD
====================================== */

.online-services-icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.online-services-icon i {
  font-size: 32px;
  color: inherit;
}

.online-services-content {
  flex: 1;
}

.online-services-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.online-services-name {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.online-services-status {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.online-services-status.active {
  background: #dcfce7;
  color: #166534;
}

.online-services-status.inactive {
  background: #e5e7eb;
  color: #6b7280;
}

.online-services-description {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 14px;
}

.online-services-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 16px;
}

.online-services-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
}

/* ======================================
SWITCH
====================================== */

.online-services-switch {
  position: relative;
  width: 52px;
  height: 30px;
}

.online-services-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.online-services-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #d1d5db;
  transition: 0.3s;
  border-radius: 999px;
}

.online-services-slider:before {
  position: absolute;
  content: '';
  width: 24px;
  height: 24px;
  left: 3px;
  top: 3px;
  background: white;
  transition: 0.3s;
  border-radius: 50%;
}

.online-services-switch input:checked + .online-services-slider {
  background: #2563eb;
}

.online-services-switch input:checked + .online-services-slider:before {
  transform: translateX(22px);
}

/* ======================================
EMPTY
====================================== */

.online-services-empty {
  padding: 60px 20px;
  text-align: center;
  color: #6b7280;
}

/* ======================================
ONLINE SERVICE FORM
====================================== */

.online-service-form-page {
  padding: 20px 16px 120px;
}

.online-service-form-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.online-service-form-back-btn {
  border: none;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  margin-top: 6px;
}

.online-service-form-header-content h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
}

.online-service-form-header-content p {
  margin-top: 6px;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.5;
}

.online-service-form-card {
  background: #fff;
  border-radius: 28px;
  padding: 22px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.online-service-form-group {
  margin-bottom: 26px;
}

.online-service-form-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.online-service-form-input,
.online-service-form-textarea {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
  font-size: 15px;
  background: #fff;
}

.online-service-form-textarea {
  resize: none;
  min-height: 120px;
}

.online-service-form-input:focus,
.online-service-form-textarea:focus {
  outline: none;
  border-color: #2563eb;
}

.online-service-form-icon-selector {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  cursor: pointer;
}

.online-service-form-icon-preview {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.online-service-form-icon-preview i {
  font-size: 30px;
  color: #2563eb;
}

.online-service-form-icon-info {
  flex: 1;
}

.online-service-form-icon-name {
  font-size: 17px;
  font-weight: 700;
}

.online-service-form-icon-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin-top: 3px;
}

.online-service-form-color-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.online-service-form-color-input {
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 18px;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.online-service-form-color-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.online-service-form-color-option {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  border: 3px solid transparent;
}

.online-service-form-color-option.active {
  border-color: #111827;
}

.online-service-form-save-btn {
  width: 100%;
  border: none;
  background: #2563eb;
  color: #fff;
  height: 58px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 700;
  margin-top: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ======================================
ICONS DRAWER
====================================== */

.online-service-form-icons-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 9999;
  display: none;
  align-items: flex-end;
}

.online-service-form-icons-overlay.active {
  display: flex;
}

.online-service-form-icons-drawer {
  width: 100%;
  background: #fff;
  border-radius: 28px 28px 0 0;
  padding: 22px 22px 120px;
  max-height: 82vh;
  overflow-y: auto;
}

.online-service-form-icons-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.online-service-form-icons-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
}

.online-service-form-icons-close {
  border: none;
  background: #f3f4f6;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
}

.online-service-form-icons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.online-service-form-icon-item {
  background: #f8fafc;
  border-radius: 18px;
  padding: 14px 8px;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
}

.online-service-form-icon-item.active {
  border-color: #2563eb;
  background: #eef2ff;
}

.online-service-form-icon-item i {
  font-size: 28px;
  color: #2563eb;
}

.online-service-form-icon-item-name {
  font-size: 11px;
  margin-top: 8px;
  line-height: 1.3;
}

.online-service-form-delete-btn {
  width: 100%;
  border: none;
  background: #dc2626;
  color: #fff;
  height: 58px;
  border-radius: 18px;
  font-size: 17px;
  font-weight: 700;
  margin-top: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* ======= TECH & ADMIN SCREEN ======= */
.online-services-page {
  padding: 20px;
  padding-bottom: 120px;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.online-services-header {
  margin-bottom: 24px;
}

.online-services-title {
  font-size: 34px;
  font-weight: 800;
  color: #111827;
}

.online-services-subtitle {
  margin-top: 4px;
  color: #6b7280;
  font-size: 14px;
}

.online-services-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.online-services-card {
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef2ff;
}

.online-service-readings-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  flex-wrap: nowrap;
}

/* ======= RENGLON 1 ======= */
.online-services-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
}

.online-services-customer {
  flex: 1;
  min-width: 0;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
}

.online-services-status {
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  text-transform: capitalize;
}

.online-services-status.pending {
  background: #fef3c7;
  color: #92400e;
}

.online-services-status.reviewing {
  background: #dbeafe;
  color: #1d4ed8;
}

.online-services-status.completed {
  background: #dcfce7;
  color: #166534;
}

/* ======= RENGLON 2 ======= */
.online-services-address {
  margin-top: 2px;
  font-size: 13px;
  color: #6b7280;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ======= RENGLON 3 ======= */
.online-services-card-middle {
  margin-top: 12px;
}

.online-services-readings-section {
  margin-top: 14px;
}

.online-services-readings-container {
  margin-top: 6px;
  width: 100%;
  min-width: 0;
}

.online-services-comment {
  padding: 10px 12px;
  border-radius: 14px;
  background: #f8fbff;
  border-left: 4px solid #3b82f6;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  max-height: 48px;
  word-break: break-word;
}

.online-services-comment-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  color: #2563eb;
  text-transform: uppercase;
}

.online-services-comment-label i {
  font-size: 12px;
}

/* ======= RENGLON 4 ======= */

.online-service-reading-mini-card {
  min-width: 72px;
  max-width: 72px;
  height: 88px;
  border-radius: 16px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 8px;
}

.online-service-reading-mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.online-service-reading-mini-name {
  width: 100%;
  font-size: 10px;
  font-weight: 600;
  color: #6b7280;
  text-align: center;
  line-height: 1.05;
  min-height: 24px;
}

.online-service-reading-mini-value {
  font-size: 12px;
  text-align: center;
  font-weight: 700;
  line-height: 1;
  color: #111827;
  margin-top: 2px;
}

.online-service-reading-mini-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ======================================
   OK
====================================== */
.online-service-reading-mini-card.ok {
  border-color: #16a34a;
}

.online-service-reading-mini-card.ok .online-service-reading-mini-value {
  color: #16a34a;
}

/* ======================================
   LOW
====================================== */
.online-service-reading-mini-card.low {
  /* background: #fff7ed; */

  border-color: #e48900;
}

.online-service-reading-mini-card.low .online-service-reading-mini-value {
  color: #e48900;
}

/* ======================================
   HIGH
====================================== */
.online-service-reading-mini-card.high {
  border-color: #dc2626;
}

.online-service-reading-mini-card.high .online-service-reading-mini-value {
  color: #dc2626;
}

/* ======= RENGLON 5 ======= */
.online-services-date,
.online-services-time {
  font-size: 13px;
  font-weight: 600;
  color: #6b7280;
}

.online-services-card-bottom {
  margin-top: 16px;
  display: flex;
  width: 100%;
  gap: 6px;
}

.online-services-bottom-item {
  flex: 1;
  min-width: 0;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #fff;
  overflow: hidden;
}

.online-services-bottom-label {
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 800;
  color: #2563eb;
  background: #eff6ff;
  text-transform: uppercase;
  border-bottom: 1px solid #dbeafe;
}

.online-services-bottom-value {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #374151;
  line-height: 1.1;
}
