
#kas-content h2 {
  font-size: 22px;
  margin-top: 15px;
  margin-bottom: 15px;
}

#kas-content section {
  display: block;
  border: none;
  padding: 25px;
  border: 1px solid #eee;
  border-radius: 5px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.05);
  margin: 0;
  margin-bottom: 25px;
}

#kas-content section:last-child,
#kas-content section > *:last-child{
  margin-bottom: 0;
}

#kas-content section h2 {
  font-size: 125% ;
  line-height: 1.5;
  font-weight: bold;
  color: #555;
  margin-top: -10px;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e5e5;
}

#kas-content section hr {
  margin-top: 15px;
  margin-bottom: 15px;
  border-top: 1px solid #e5e5e5;
}

#kas-content section a:not(.kas-button) {
  color: inherit;
  text-decoration: none;
}

#kas-content section a:not(.kas-button):hover {
  text-decoration: underline;
}

#kas-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 15px;
}

.kas-indicator-circle {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 3px;
  background-color: gray;
  position: relative;
  overflow: visible;
}

.kas-indicator-circle::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  background-clip: padding-box;
  opacity: 0.45;
  filter: blur(3px);
  pointer-events: none;
  animation: kas-indicator-pulse 2000ms infinite ease-out;
}

@keyframes kas-indicator-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.5;
  }
  60% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
}

.kas-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: 100%;
  margin: 0 auto;
  margin-top: 5%;
  margin-bottom: 5%;
  text-align: center;
  color: #334155;
}

.kas-placeholder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0.04));
  color: #2563eb;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.12);
}

.kas-placeholder-icon svg {
  width: 36px;
  height: 36px;
}

.kas-placeholder-content {
  max-width: 560px;
}

.kas-placeholder-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: #0f172a;
}

.kas-placeholder-message {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #475569;
  margin: 0 auto;
  max-width: 520px;
}

.kas-placeholder-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.kas-placeholder-actions .kas-button {
  min-width: 190px;
}

.kas-notice {
  position: relative;
  display: block;
  width: 100%;
  padding: 10px;
  padding-left: 15px;
  padding-right: 15px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #0c3c60;
  background-color: #dbeafe;
  border: 1px solid #bfdffd;
  border-radius: 0.375rem;
}

.kas-notice p {
  margin: 0;
}

.kas-notice a {
  color: inherit;
  text-decoration: underline;
}

.kas-notice a:hover {
  color: inherit;
}

.kas-notice-primary {
  color: #084298;
  background-color: #cfe2ff;
  border-color: #b6d4fe;
}

.kas-notice-secondary {
  color: #41464b;
  background-color: #e2e3e5;
  border-color: #d3d6d8;
}

.kas-notice-success {
  color: #0f5132;
  background-color: #d1e7dd;
  border-color: #badbcc;
}

.kas-notice-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

.kas-notice-warning {
  color: #664d03;
  background-color: #fff3cd;
  border-color: #ffecb5;
}

.kas-notice-info {
  color: #055160;
  background-color: #edf3ff;
  border-color: #cfe2ff;
}

.kas-notice-light {
  color: #506389;
  background-color: #f0f0f0;
  border-color: #eee;
}

.kas-notice-dark {
  color: #141619;
  background-color: #d3d3d4;
  border-color: #bcbebf;
}

.kas-plan-preview {
  border: 1px solid #eaeaea; /*#d2dbe8;*/
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  background: #fff; /*#f8fbff; */
  padding: 16px;
  margin-bottom: 15px;
  color: #102a43;
}

.kas-plan-preview-title {
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #102a43;
}

.kas-plan-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.kas-plan-preview-row:last-child { margin-bottom: 0; }
.kas-plan-preview-label { color: #102a43; }
.kas-plan-preview-value { color: #102a43; white-space: nowrap; }
.kas-plan-preview-separator { border-top: 1px solid #999; margin: 5px 0; }
.kas-plan-preview-total {
  font-weight: 700;
  font-size: 1.05rem;
  border-top: 2px solid #102a43;
  padding-top: 12px;
  margin-top: 10px;
}

.kas-plan-preview-notice {
  background: #eaf4ff;
  border: 1px solid #a9c9ff;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  color: #0b3a66;
}

.kas-tabs {
  margin-bottom: 24px;
}

.kas-tabs-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.kas-tabs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 0;
  /* border-radius: 999px; */
  background: transparent;
  color: #475569;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.kas-tabs-button:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.03);
}

.kas-tabs-button.active,
.kas-tabs-button.active:hover {
  pointer-events: none;
  cursor: inherit;
  background: inherit;
}

.kas-tabs-button.active {
  color: #0f172a;
  /* background: rgba(37, 99, 235, 0.1); */
  box-shadow: inset 0 -3px 0 #2563eb;
  font-weight: 700;
}

.kas-tabs-panel {
  display: none;
}

@media (max-width: 680px) {
  .kas-tabs-menu {
    justify-content: flex-start;
    gap: 8px;
  }

  .kas-tabs-button {
    flex: 1 1 auto;
    min-width: 120px;
    white-space: nowrap;
  }
}

@media (max-width: 520px) {
  .kas-tabs-menu {
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .kas-placeholder {
    padding: 28px 20px;
    border-radius: 20px;
    gap: 18px;
  }

  .kas-placeholder-icon {
    width: 60px;
    height: 60px;
  }

  .kas-placeholder-title {
    font-size: 1.2rem;
  }

  .kas-placeholder-message {
    font-size: 0.95rem;
  }

  .kas-placeholder-actions .kas-button {
    width: 100%;
  }
}

.kas-ticket-messages {
  margin-bottom: 20px;
}

.kas-ticket-message {
  margin-bottom: 15px;
  padding: 10px;
  border-radius: 10px;
}

.kas-ticket-message-attachments {
  margin-top: 15px;
}

.kas-ticket-message-attachments a {
  display: flex;
  align-items: center;
  margin-right: 10px;
  color: inherit;
  text-decoration: none;
  font-size: 90%;
  font-weight: normal;
}

.kas-ticket-message-attachments a svg {
  margin-right: 2px;
}

.kas-ticket-message-highlight {
  background-color: #f5f7f9;
}

.kas-ticket-message-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 90%;
  color: #777;
  padding-top: 5px;
  margin-top: 15px;
  border-top: 1px solid #ddd;
}

.kas-ticket-message-footer-by {
  font-weight: bold;
}

.kas-ticket-message-footer-date {
  text-align: right;
  margin-left: auto;
}

.kas-flex-rows {

}

.kas-flex-row {
  display: flex;
  padding: 10px;
  border-bottom: 1px solid #e5e5e5;
}

.kas-flex-rows > *:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.kas-flex-rows.highlight > *:nth-child(even) {
  font-weight: bold;
  background-color: #f5f5f5;
}

.kas-flex-row-column {
  width: 50%; 
}

@media (max-width: 680px) {
  .kas-flex-row {
    flex-direction: column;
  }
  .kas-flex-row-column {
    width: 100%;
  }
}

.kas-dashboard-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.kas-dashboard-action-card {
  border: 1px solid #e5e7eb;
  border-left-width: 4px;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.kas-dashboard-action-card.is-critical {
  border-left-color: #b42318;
  background: #fff7f7;
}

.kas-dashboard-action-card.is-warning {
  border-left-color: #b54708;
  background: #fffaf5;
}

.kas-dashboard-action-card.is-notice {
  border-left-color: #0a66c2;
  background: #f7fbff;
}

.kas-dashboard-action-card.is-ok {
  border-left-color: #9aa4b2;
}

.kas-dashboard-action-title {
  font-size: 12px;
  color: #5b6777;
}

.kas-dashboard-action-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 2px;
}

.kas-dashboard-action-value.is-text {
  font-size: 22px;
}

.kas-dashboard-action-hint {
  font-size: 12px;
  color: #5b6777;
  margin-top: 4px;
  min-height: 2.4em;
}

.kas-subscription-timeline {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
}

.kas-subscription-timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #e5e7eb;
}

.kas-subscription-timeline-item:last-child {
  border-bottom: none;
}

.kas-subscription-timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.kas-subscription-timeline-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.16);
  position: relative;
  z-index: 1;
}

.kas-subscription-timeline-line {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% - 24px);
  background: #dbeafe;
}

.kas-subscription-timeline-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kas-subscription-timeline-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.kas-subscription-timeline-header strong {
  display: block;
  font-size: 1rem;
  color: #0f172a;
}

.kas-subscription-timeline-sub {
  display: inline-flex;
  align-items: center;
  margin-left: 0;
  color: #475569;
  font-size: 0.92rem;
}

.kas-subscription-timeline-date {
  color: #64748b;
  font-size: 0.95rem;
  white-space: nowrap;
}

.kas-subscription-timeline-body {
  display: grid;
  gap: 10px;
}

.kas-subscription-timeline-line-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #334155;
}

.kas-subscription-timeline-label {
  color: #64748b;
  font-size: 0.92rem;
  min-width: 120px;
}

.kas-subscription-timeline-value {
  color: #0f172a;
  font-size: 0.95rem;
  text-align: right;
  white-space: nowrap;
}

.kas-subscription-timeline-note {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #334155;
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .kas-subscription-timeline-item {
    grid-template-columns: 24px 1fr;
  }

  .kas-subscription-timeline-header {
    flex-direction: column;
    align-items: stretch;
  }

  .kas-subscription-timeline-sub,
  .kas-subscription-timeline-date,
  .kas-subscription-timeline-value {
    white-space: normal;
  }
}


.kas-dashboard-action-cta {
  margin-top: 10px;
}

.kas-delivery-progress {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.kas-delivery-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #999;
  font-size: 13px;
}

.kas-delivery-step .kas-delivery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  display: inline-block;
}

.kas-delivery-step.is-complete {
  color: #16a34a;
}

.kas-delivery-step.is-complete .kas-delivery-dot {
  background: #16a34a;
}

.kas-delivery-step.is-warning {
  color: #ca8a04;
}

.kas-delivery-step.is-warning .kas-delivery-dot {
  background: #ca8a04;
}

.kas-delivery-connector {
  width: 20px;
  height: 2px;
  background: #ddd;
  display: inline-block;
}

.kas-delivery-connector.is-complete {
  background: green;
}

@media (max-width: 680px) {
  .kas-delivery-progress {
    gap: 6px;
  }

  .kas-delivery-step {
    font-size: 12px;
  }

  .kas-delivery-connector {
    width: 14px;
  }
}