:root {
  --yam-primary: #75ad42;
  --yam-primary-hover: #628d3c;
  --yam-primary-light: #f4ffeb;
  --yam-text-main: #1e293b;
  --yam-text-muted: #64748b;
  --yam-text-light: #94a3b8;
  --yam-border: #e2e8f0;
  --yam-bg-subtle: #f8fafc;
  --yam-bg-card: #ffffff;
  --yam-dark-modal: #252b36;
  --yam-dark-input: #1b2029;
  --yam-dark-border: #3b4455;
  --yam-font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --yam-blue-brand: #3592c8;
}

.yam-widget-wrapper {
  font-family: var(--yam-font);
  color: var(--yam-text-main);
  background: #ffffff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header bar */
.yam-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--yam-border);
  margin-bottom: 20px;
}

.yam-company-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--yam-text-main);
  letter-spacing: -0.2px;
}

.yam-platform-info {
  font-size: 14px;
  color: var(--yam-text-muted);
}

.yam-platform-info a {
  color: #0284c7;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.yam-platform-info a:hover {
  color: #0369a1;
}

.yam-btn-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--yam-primary);
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgb(0 48 31 / 25%);
}

.yam-btn-filter:hover {
  background-color: var(--yam-primary-hover);
  transform: translateY(-1px);
}

.yam-btn-filter svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.yam-filter-badge {
  background: #ffffff;
  color: var(--yam-primary-hover);
  font-size: 11px;
  font-weight: 700;
  border-radius: 10px;
  padding: 2px 6px;
  margin-left: 2px;
}

/* Table styling */
.yam-table-container {
  overflow-x: auto;
  margin-bottom: 24px;
  border-radius: 8px;
}

.yam-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.yam-table th {
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--yam-text-main);
  background: #ffffff;
  border-bottom: 2px solid var(--yam-border);
  white-space: nowrap;
}

.yam-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--yam-text-main);
  cursor: pointer;
  transition: all 0.15s ease;
}

.yam-sort-btn:hover {
  border-color: var(--yam-primary);
  color: var(--yam-primary);
  background: var(--yam-primary-light);
}

.yam-sort-btn.active {
  border-color: var(--yam-primary);
  background: var(--yam-primary-light);
  color: #059669;
}

.yam-sort-arrows {
  font-size: 12px;
  opacity: 0.8;
}

.yam-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.yam-table tbody tr:hover {
  background-color: #f8fafc;
}

.yam-table td {
  padding: 18px 14px;
  font-size: 14px;
  vertical-align: middle;
}

.yam-col-code {
  color: var(--yam-text-muted);
  font-family: monospace;
  font-size: 14px;
  font-weight: 500;
  width: 80px;
}

.yam-col-name {
  font-weight: 700;
  color: var(--yam-text-main);
  max-width: 380px;
  line-height: 1.4;
}

.yam-col-date {
  color: #334155;
  font-size: 13.5px;
  white-space: nowrap;
}

.yam-badge-status {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.yam-status-active {
  background-color: #75ad42;
  color: #ffffff;
}

.yam-status-pending {
  background-color: #f59e0b;
  color: #ffffff;
}

.yam-status-completed {
  background-color: #64748b;
  color: #ffffff;
}

.yam-col-type {
  color: #75ad42;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
}

.yam-col-type svg {
  vertical-align: middle;
  margin-left: 2px;
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* Empty state & Loading */
.yam-loading-row,
.yam-empty-row {
  text-align: center;
  padding: 40px !important;
  color: var(--yam-text-muted);
  font-size: 15px;
}

/* Pagination */
.yam-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
}

.yam-page-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 6px;
  background-color: #334155;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.yam-page-btn:hover:not(:disabled) {
  background-color: #475569;
}

.yam-page-btn.active {
  background-color: var(--yam-primary);
  color: #ffffff;
}

.yam-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.yam-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  box-sizing: border-box;
}

.yam-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.yam-modal-dialog {
  background-color: var(--yam-dark-modal);
  color: #ffffff;
  width: 100%;
  max-width: 380px;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.25s ease;
  box-sizing: border-box;
  max-height: 90vh;
  overflow-y: auto;
}

.yam-modal-backdrop.open .yam-modal-dialog {
  transform: translateY(0);
}

.yam-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.yam-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.yam-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  transition: color 0.15s ease;
}

.yam-modal-close:hover {
  color: #ffffff;
}

/* Modal form inputs */
.yam-filter-group {
  margin-bottom: 18px;
}

.yam-dark-input {
  width: 100%;
  background-color: var(--yam-dark-input);
  border: 1px solid var(--yam-dark-border);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.yam-dark-input::placeholder {
  color: #64748b;
}

.yam-dark-input:focus {
  border-color: var(--yam-primary);
}

.yam-filter-section-title {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
  font-weight: 500;
}

/* Toggle Switch row */
.yam-toggle-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  user-select: none;
}

.yam-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.yam-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.yam-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #334155;
  transition: 0.25s ease;
  border-radius: 24px;
}

.yam-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: 0.25s ease;
  border-radius: 50%;
}

.yam-switch input:checked + .yam-slider {
  background-color: var(--yam-primary);
}

.yam-switch input:checked + .yam-slider:before {
  transform: translateX(20px);
}

.yam-toggle-label {
  font-size: 14px;
  color: #f1f5f9;
  font-weight: 500;
}

/* Date Range Inputs */
.yam-date-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.yam-date-prefix {
  font-size: 14px;
  color: #94a3b8;
  width: 22px;
}

.yam-date-input {
  flex: 1;
  background-color: var(--yam-dark-input);
  border: 1px solid var(--yam-dark-border);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.yam-date-input::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.yam-date-input:focus {
  border-color: var(--yam-primary);
}

/* Modal Actions */
.yam-modal-actions {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.yam-btn-apply {
  width: 100%;
  background-color: var(--yam-primary);
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.yam-btn-apply:hover {
  background-color: var(--yam-primary-hover);
}

.yam-btn-reset {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  padding: 6px;
  text-decoration: underline;
  transition: color 0.15s ease;
}

.yam-btn-reset:hover {
  color: #ffffff;
}

.yam-contacts-card {
  background: #f4f9fd;
  border: 1px solid #dbeaf5;
  border-radius: 16px;
  padding: 24px 32px;
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-sizing: border-box;
  box-shadow: 0 4px 16px rgba(53, 146, 200, 0.05);
}

.yam-contact-divider {
  width: 1px;
  align-self: stretch;
  background-color: #dbeaf5;
  flex-shrink: 0;
}

.yam-contact-col {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.yam-contact-col-info {
  flex: 1.25;
  min-width: 250px;
}

.yam-contact-col-emails {
  flex: 1;
  min-width: 180px;
}

.yam-contact-col-phones {
  flex: 1;
  min-width: 180px;
}

.yam-contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: #e2f0fb;
  color: #3592c8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.yam-contact-text {
  display: flex;
  flex-direction: column;
}

.yam-contact-title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: #0b3954;
  line-height: 1.35;
}

.yam-contact-desc {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.45;
}

.yam-contact-label {
  font-size: 13px;
  font-weight: 700;
  color: #0b3954;
  margin-bottom: 6px;
}

.yam-contact-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.yam-contact-link {
  font-size: 13.5px;
  color: #3592c8;
  text-decoration: none;
  transition: color 0.15s ease;
  line-height: 1.4;
}

.yam-contact-link:hover {
  color: #1f6e9e;
  text-decoration: underline;
}

.yam-phone-link {
  color: #1e293b;
  font-weight: 500;
}

.yam-phone-link:hover {
  color: #3592c8;
  text-decoration: underline;
}

.yam-about-banner {
  position: relative;
  background: linear-gradient(135deg, #e3f1fb 0%, #edf6fd 45%, #ffffff 100%);
  border: 1px solid #d4e7f6;
  border-radius: 24px;
  margin-top: 24px;
  padding: 0 40px 0 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(53, 146, 200, 0.08);
  box-sizing: border-box;
  min-height: 260px;
}

/* Milk splash waves in bottom-right background */
.yam-about-splash-bg {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 58%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.95;
}

.yam-about-splash-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

.yam-about-char-col {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  display: flex;
  align-items: flex-end;
  height: 260px;
  margin-bottom: 0;
  margin-right: 44px; /* Increased margin between illustration and text */
}

.yam-about-char-img {
  height: 260px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(11, 57, 84, 0.1));
}

.yam-about-content {
  position: relative;
  z-index: 2;
  flex: 1;
  padding: 28px 0;
  min-width: 290px;
  align-self: center;
}

.yam-about-title {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 800;
  color: #2351bf;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.yam-about-desc {
  margin: 0;
  font-size: 14.5px;
  color: #475569;
  line-height: 1.55;
  max-width: 540px;
}

.yam-about-divider {
  width: 160px;
  height: 3.5px;
  background-color: #88c5ef;
  border-radius: 2px;
  margin: 16px 0 10px;
}

.yam-about-author {
  font-size: 17px;
  font-weight: 700;
  color: #3592c8;
}

.yam-about-action {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  align-self: center;
}

.yam-btn-max {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  position: relative;
  background: 
    radial-gradient(ellipse 65% 55% at 20% 0%, rgba(255, 255, 255, 0.48) 0%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(180deg, #4dc220 0%, #3ca715 48%, #278809 100%);
  color: #ffffff;
  text-decoration: none;
  padding: 8px 24px 8px 10px;
  border-radius: 16px;
  font-size: 16px;
  font-weight: 700;
  border-top: 1px solid #77e944;
  border-bottom: 1px solid #1a6305;
  border-left: 1px solid #48b81d;
  border-right: 1px solid #2f940f;
  box-shadow: 
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.65),
    inset 0 -2px 2px rgba(12, 50, 4, 0.42),
    0 4px 14px rgba(35, 115, 12, 0.32);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  box-sizing: border-box;
}

.yam-btn-max:hover {
  background: 
    radial-gradient(ellipse 65% 55% at 20% 0%, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0) 65%),
    linear-gradient(180deg, #56cd2a 0%, #42b217 48%, #2b930d 100%);
  border-top-color: #88f255;
  border-bottom-color: #1e7208;
  box-shadow: 
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.75),
    inset 0 -2px 2px rgba(12, 50, 4, 0.42),
    0 6px 18px rgba(35, 115, 12, 0.42);
  transform: translateY(-1.5px);
}

.yam-btn-max:active {
  transform: translateY(1px);
  box-shadow: 
    inset 0 2px 4px rgba(10, 45, 4, 0.5),
    0 2px 8px rgba(35, 115, 12, 0.3);
}

.yam-btn-max-badge {
  width: 36px;
  height: 36px;
  background: #ffffff;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.16);
}

.yam-btn-max-text {
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 2px rgba(15, 60, 5, 0.35);
}

.yam-btn-max-arrow {
  transition: transform 0.2s ease;
  filter: drop-shadow(0 1px 1px rgba(15, 60, 5, 0.35));
}

.yam-btn-max:hover .yam-btn-max-arrow {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .yam-contacts-card {
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 20px;
  }
  .yam-contact-divider {
    width: 100%;
    height: 1px;
  }

  .yam-about-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
    gap: 20px;
    min-height: auto;
  }
  .yam-about-char-col {
    height: auto;
    align-self: center;
    margin-right: 0;
    margin-bottom: 12px;
  }
  .yam-about-char-img {
    height: 220px;
    max-width: 100%;
  }
  .yam-about-content {
    padding: 0;
    width: 100%;
  }
  .yam-about-action {
    width: 100%;
  }
  .yam-btn-max {
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
  }
  .yam-about-splash-bg {
    width: 100%;
    opacity: 0.5;
  }
}

@media (max-width: 768px) {
  .yam-widget-wrapper {
    padding: 14px;
  }
  .yam-company-title {
    font-size: 15px;
  }
  .yam-platform-info {
    font-size: 12px;
  }
  .yam-table th,
  .yam-table td {
    padding: 10px 8px;
    font-size: 13px;
  }
  .yam-col-name {
    max-width: 200px;
  }
}
