:root {
  /* A empresa pode trocar somente estas variáveis */
  --company-color: #ed1c24;
  --company-color-dark: #d71920;
  --success-color: #27be68;
  --partial-color: #ed1c24;
  --neutral-color: #a7a7a7;
  --title-color: #5b5b5b;
  --h1-color: #ed1c24;
  --error-color: #ed1c24;
  --page-bg: #ffffff;
  --soft-bg: #f1f1f1;
  --footer-bg: #E9E9E9;
  --text: #3d3d3d;
  --muted: #8d8d8d;
  --border: #8c8c8c;
  --page-width: 1080px;
  --radius: 13px;
  --font: "Montserrat", Arial, sans-serif;

  /* Tokens tipográficos (pesos Montserrat) */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Tokens de cor tipográfica */
  --greeting-color: #ED1C2E;
  --stage-title-color: #58595B;
  --stepper-label-color: #231F20;
  --message-text-color: #231F20;
  --history-toggle-color: #231F20;
  --action-card-label-color: #231F20;
  --footer-legal-color: #58595B;
  --evaluate-button-bg: #ED1C2E;
  --evaluate-button-bg-hover: #BA221D;
}

/* Tema por companhia: sobrescreve apenas as variáveis de cor.
   A classe é aplicada no <body> via CompanyThemeViewModel.CssClass. */
body.theme-gm {
    --company-color: #0956FF;
    --company-color-dark: #0956FF;
    --success-color: #000000;
    --partial-color: #0956FF;
    --neutral-color: #AFD5FF;
    --title-color: #0956FF;
    --greeting-color: #0956FF;
    --h1-color: #0956FF;
    --evaluate-button-bg: #0956FF;
    --evaluate-button-bg-hover: #095FFF;
    --message-text-color: #000000;
}

body.theme-abrahy {
    --company-color: #0A4595;
    --company-color-dark: #0A4595;
    --success-color: #00AAD2;
    --title-color: #5b5b5b;
    --greeting-color: #0A4595;
    --h1-color: #0A4595;
    --partial-color: #0A4595;
    --evaluate-button-bg: #0A4595;
    --evaluate-button-bg-hover: #0A4595;
}

body.theme-assistia {
    --company-color: #664AC7;
    --company-color-dark: #5437B5;
    --success-color: #00ABC4;
    --partial-color: #664AC7;
    --h1-color: #5437B5;
    --greeting-color: #5437B5;
    --evaluate-button-bg: #664AC7;
    --evaluate-button-bg-hover: #5437B5;
}

body.theme-audi {
    --company-color: #EB203B;
    --company-color-dark: #EB203B;
    --h1-color: #000000;
    --greeting-color: #000000;
    --success-color: #000000;
    --partial-color: #EB203B;
    --evaluate-button-bg: #000000;
    --evaluate-button-bg-hover: #393939;
    --message-text-color: #393939;
}

body.theme-carbank {
    --company-color: #0F2F69;
    --company-color-dark: #0F2F69;
    --h1-color: #0F2F69;
    --greeting-color: #0F2F69;
    --success-color: #65C081;
    --partial-color: #0F2F69;
    --evaluate-button-bg: #0F2F69;
    --evaluate-button-bg-hover: #17469E;
    --message-text-color: #393939;
}

body.theme-santander {
    --company-color: #E42127;
    --company-color-dark: #E42127;
    --success-color: #000000;
    --title-color: #E42127;
    --greeting-color: #E42127;
    --h1-color: #E42127;
    --partial-color: #E42127;
    --evaluate-button-bg: #E42127;
    --evaluate-button-bg-hover: #E42127;
}

body.theme-vw {
    --company-color: #111D3B;
    --company-color-dark: #111D3B;
    --h1-color: #111D3B;
    --greeting-color: #111D3B;
    --success-color: #0170B8;
    --partial-color: #111D3B;
    --evaluate-button-bg: #111D3B;
    --evaluate-button-bg-hover: #111D3B;
}

body.theme-continental {
    --company-color: #FFA500;
    --company-color-dark: #FFA500;
    --success-color: #272727;
    --title-color: #FFA500;
    --greeting-color: #FFA500;
    --h1-color: #FFA500;
    --partial-color: #FFA500;
    --evaluate-button-bg: #FFA500;
    --evaluate-button-bg-hover: #FFA500;
}

body.theme-bradesco-seguros {
    --company-color: #CC0A2F;
    --company-color-dark: #CC0A2F;
    --success-color: #000000;
    --title-color: #CC0A2F;
    --greeting-color: #CC0A2F;
    --h1-color: #CC0A2F;
    --partial-color: #CC0A2F;
    --evaluate-button-bg: #CC0A2F;
    --evaluate-button-bg-hover: #CC0A2F;
}


* {
    box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; }

.page-width {
  width: min(var(--page-width), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Header ---------- */
.site-header {
  width: 100%;
  border-bottom: 2px solid #9d9d9d;
  background: #fff;
}

.header-inner {
  height: 118px;
  display: flex;
  align-items: center;
}

/* ---------- Order not found ---------- */
.order-not-found {  
  background: var(--company-color);
  color: #fff;
  padding: 32px 24px;
  border-radius: var(--radius);
  text-align: center;
  width: min(var(--page-width), calc(100% - 48px));
  margin: 0 auto;
  margin-top: 40px;
}

.order-not-found-title {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
}

.order-not-found-text {
  margin: 12px 0 0;
  font-size: 17px;
}

.logo {
  display: block;
  width: 190px;
  height: auto;
  object-fit: contain;
  max-height: 90px;
}

.logo-header {
  width: 190px;
}

.logo-bradesco-seguros{
    width: 240px;
}

.logo-santander {
    width: 240px;
}

/* ---------- Main ---------- */
.main-content {
  /*min-height: 1230px;*/
  padding-top: 60px;
  padding-bottom: 58px;
}

h1 {
    margin: 0 0 38px;
    color: var(--greeting-color);
    font-size: 28px;
    line-height: 1.05;
    font-weight: var(--fw-bold);
}

/* ---------- Red company banner ---------- */
.order-banner {
  min-height: 150px;
  padding: 15px 15px 15px;
  border-radius: var(--radius);
  background: var(--company-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.banner-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.09;
  font-weight: var(--fw-regular);
  color: #fff;
}

.banner-title-highlight {
  font-size: 22px;
  font-weight: var(--fw-bold);
}

.order-number {
  margin: 0;
  font-size: 16px;
  line-height: 1.1;
  font-weight: var(--fw-regular);
  color: #fff;
}

.order-number strong { font-weight: var(--fw-bold); }

.banner-icon {
  width: 162px;
  height: 120px;
  flex: 0 0 auto;
}

/* ---------- Tracking card ---------- */
.tracking-card {
  margin-top: 28px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.current-stage {
  padding: 20px 22px 27px;
}

.current-stage h2 {
  margin: 0 0 22px;
  color: var(--stage-title-color);
  font-size: 16px;
  line-height: 1;
  font-weight: var(--fw-semibold);
}

.stage-cancelled {
  margin: 0;
  color: var(--company-color);
  font-size: 25px;
  line-height: 1.1;
  font-weight: 800;
}

.stage-progress {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--stage-count, 5), 1fr);
  align-items: start;
  isolation: isolate;
}

/* Horizontal connector behind all stage icons */
.stage-progress::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 9%;
  right: 9%;
  top: 26px;
  height: 2px;
  background: var(--neutral-color);
}

.stage-item {
  min-width: 0;
  position: relative;
  text-align: center;
  color: var(--neutral-color);
}

.stage-item.completed {
  color: var(--success-color);
}

.stage-item.xblock,
.stage-item.partial {
  color: var(--partial-color);
}

.stage-dot {
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: currentColor;
  display: grid;
  place-items: center;
}

.stage-icon {
  width: 31px;
  height: 31px;
  color: #fff;
}

.stage-label {
  display: block;
  font-size: 13px;
  line-height: 1.1;
  font-weight: var(--fw-medium);
  white-space: nowrap;
  color: var(--stepper-label-color);
}

/* ---------- Current message ---------- */
.current-message {
  position: relative;
  border-top: 2px solid var(--border);
  padding: 27px 22px 29px 22px;
  min-height: 145px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* Line segment from the message-check icon down to the history border,
   so it visually touches the icon at the top. Only visible while the
   history-wrapper is expanded (.open). */
.current-message::after {
  content: "";
  position: absolute;
  left: 47px;
  top: 79px;
  bottom: 0;
  width: 3px;
  background: var(--history-accent-color, var(--success-color));
  display: none;
}

.current-message:has(+ .history-wrapper.open)::after,
.current-message.history-open::after {
  display: block;
}

.message-check {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 50%;
  background: var(--success-color);
  color: #fff;
  display: grid;
  place-items: center;
}

.message-check.xblock,
.message-check.partial { background: var(--partial-color); }
.message-check.pending { background: var(--neutral-color); }
.message-check.error { background: var(--error-color); }

.message-check .icon {
  width: 34px;
  height: 34px;
}

.message-copy h3 {
  margin: 0 0 8px;
  color: var(--success-color);
  font-size: 18px;
  line-height: 1.1;
  font-weight: var(--fw-semibold);
}

.message-copy h3.partial { color: var(--partial-color); }
.message-copy h3.pending { color: var(--neutral-color); }

.message-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.message-copy p {
  margin: 0;
  margin-bottom:20px;
  max-width: 620px;
  font-size: 16px;
  line-height: 1.22;
  font-weight: var(--fw-regular);
  color: var(--message-text-color);
}

.message-copy p.no-space {
  margin-bottom: 0;
}

/* ---------- Previous stages ---------- */
.history-wrapper {
  max-height: 0;
  overflow: hidden;
  background: var(--soft-bg);
  transition: max-height 0.28s ease;
}

.history-wrapper.open {
  max-height: 700px;
}

.history-list {
  position: relative;
  padding: 18px 22px 12px 78px;
  background: var(--soft-bg);
  border-top: 2px solid var(--border);
}

/* Line segment from the top border down to the first history marker */
.history-list::before {
  content: "";
  position: absolute;
  left: 47px;
  top: 0;
  height: 31px;
  width: 3px;
  background: var(--history-accent-color, var(--success-color));
}

.history-item {
  position: relative;
  padding: 0 0 19px;
  min-height: 51px;
}

.history-item:last-child { padding-bottom: 3px; }

/* Line segment connecting this marker's center to the next marker's center.
   Not rendered for the last item, so the line never overshoots it. */
.history-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 13px;
  bottom: -13px;
  width: 3px;
  background: var(--history-accent-color, var(--success-color));
}

.history-marker {
  position: absolute;
  left: -40px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--history-accent-color, var(--success-color));
  border: 3px solid var(--soft-bg);
}

.history-title {
  margin: 0 0 2px;
  font-size: 19px;
  line-height: 1.05;
  font-weight: 700;
}

.history-date {
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}

.history-toggle {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-top: 0;
  padding: 13px 22px;
  background: var(--soft-bg);
  color: var(--history-toggle-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: var(--fw-medium);
  text-align: left;
  border-top: 2px solid var(--border);
}

.history-toggle:hover { background: #e2e2e2; }

.history-toggle .icon--chevron {
  width: 24px;
  height: 24px;
  transition: transform 0.25s ease;
  transform: rotate(180deg);
}

.history-toggle[aria-expanded="true"] {
  border-top: none;
}

.history-toggle[aria-expanded="true"] .icon--chevron {
  transform:none;
}

/* ---------- Actions ---------- */
.action-grid {
  margin-top: 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.action-grid--fill {
  grid-template-columns: repeat(2, 1fr);
}

.action-card {
  min-height: 188px;
  border: 0;
  border-radius: 14px;
  background: #e9e9e9;
  color: var(--action-card-label-color);
  cursor: pointer;
  padding: 20px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 26px;
  line-height: 1.05;
  font-weight: var(--fw-semibold);
  text-align: center;
}

.action-card:hover { background: #e2e2e2; }

.action-card--disabled,
.action-card--disabled:hover {
  background: #fff;
  border: 1px solid #c9c9c9;
  color: #9a9a9a;
  cursor: not-allowed;
}

.action-card--disabled .action-icon {
  color: #b3b3b3;
}

.action-icon {
  width: 60px;
  height: 60px;
  color: var(--company-color);
}

/* ---------- Popup (Order Details) ---------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.popup-overlay[hidden] {
  display: none;
}

/* ---------- Loading global ---------- */
.app-loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.app-loading-overlay[hidden] {
  display: none;
}

.app-loading-spinner {
  width: 56px;
  height: 56px;
  border: 6px solid var(--soft-bg);
  border-top-color: var(--company-color);
  border-radius: 50%;
  animation: app-loading-spin 0.8s linear infinite;
}

@keyframes app-loading-spin {
  to { transform: rotate(360deg); }
}

.popup-box {
  position: relative;
  width: 100%;
  max-width: 730px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}

.popup-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  background: var(--company-color, #252525);
  padding: 6px 20px;
}

.popup-close {
  grid-column: 3;
  justify-self: end;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px;
  color: #fff;
  font-size: 30px;
  font-weight: bold;
  line-height: 1;
}

.popup-title {
  grid-column: 2;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  white-space: normal;
}

.popup-close .icon {
  width: 20px;
  height: 20px;
}

.popup-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 24px 24px;
}

.popup-row {
  margin: 0;
  font-size: 16px;
  color: #252525;
}

.popup-row strong {
  font-weight: 700;
}

.popup-row a {
  color: var(--company-color);
}

.popup-action-button {
  margin-top: 8px;
  width: 100%;
  min-height: 38px;
  border: 0;
  border-radius: 10px;
  background: var(--company-color, #252525);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}

.popup-action-button:hover {
  filter: brightness(0.92);
}

.stage-action-button.disabled,
.popup-action-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: none;
    background-color: #F0F0F0;
    color: #999999;
}

.stage-action-button.disabled, .stage-action-button.disabled .stage-action-icon,
.popup-action-button:disabled .popup-action-icon {
    color: #999999;
}

.stage-action-button.disabled:hover{background-color: #F0F0F0;}

.popup-action-icon {
  width: 24px;
  height: 24px;
  color: #fff;
}

.popup-textarea {
  width: 100%;
  min-height: 100px;
  margin-top: 4px;
  padding: 10px 12px;
  border: 0;
  background-color: #F0F0F0;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  color: var(--text);
  resize: vertical;
}

.popup-textarea:focus {
  outline: none;
  border-color: var(--company-color);
}

.popup-row--center {
  text-align: center;
}

.popup-success-icon-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
}

.popup-action-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.popup-action-row .popup-action-button {
  flex: 1 1 0;
  width: auto;
  margin-top: 0;
}

.popup-action-button--secondary {
  background: #fff;
  color: var(--company-color, #252525);
  border: 2px solid var(--company-color, #252525);
}

/* ---------- Popup (Privacy policy) ---------- */
.popup-box--wide {
  max-width: min(var(--page-width), calc(100% - 48px));
}

.popup-content--scroll {
  max-height: 65vh;
  overflow-y: auto;
}

.privacy-policy-scroll h2,
.privacy-policy-scroll h3 {
  margin: 0 0 8px;
  color: var(--title-color);
}

.privacy-policy-item {
  margin-bottom: 12px;
}

.privacy-policy-item--nested {
  padding-left: 18px;
}

.popup-action-button--secondary:hover {
  background: #f5f5f5;
  filter: none;
}

/* ---------- Stage partial action buttons ---------- */
.stage-action-button {
  margin-top: 16px;
  margin-bottom: 16px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--evaluate-button-bg, var(--company-color, #252525));
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 16px;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  text-decoration: none;
}

.stage-action-button:hover {
  background: var(--evaluate-button-bg-hover, var(--company-color));
  filter: none;
}

.stage-action-icon {
  width: 24px;
  height: 24px;
  color: #fff;
}

/* ---------- Calendar / Local block (agendamento) ---------- */
.calendar-local-block {
  position: relative;
  z-index: 1;
  width: calc(100% + 72px);
  margin-left: -72px;
  margin-top: 16px;
  margin-bottom: 16px;
  background: var(--page-bg);
}

.calendar-local-cards {
  display: flex;
  gap: 8px;
}

.calendar-local-card {
  flex: 1 1 50%;
  min-width: 0;
  background: #f5f5f5;
  border-radius: 8px;
  padding: 12px;
}

.calendar-local-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.calendar-local-icon {
  width: 27.4px;
  height: 27.4px;
  color: var(--company-color);
  flex: 0 0 23.4px;
}

.calendar-local-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--company-color);
  line-height: 1.2;
}

.calendar-local-subtitle {
  margin: 0 0 6px;
  color: var(--company-color);
  font-size:13px!important;
  margin-left:26px!important;
  margin-bottom:0!important;

}

.calendar-local-text {
  padding: 10px 6px 10px 6px!important;
  font-size: 18px!important;
  color: var(--text);
  line-height: 1.3!important;
}

.calendar-local-highlight {
  padding: 0 6px 0 6px!important;
  font-size: 18px!important;
  font-weight: 700;
  color: var(--text);
}

.calendar-local-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.calendar-local-button {
  flex: 1 1 50%;
  min-height: 40px;
  border: 1px solid var(--company-color);
  border-radius: 8px;
  background: #fff;
  color: var(--company-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 18px;
  font-weight: 700;
  text-decoration:none;
}

/*.calendar-local-button:hover {
  background: #f5f5f5;
}*/

.calendar-local-button-icon {
  width: 26.8px;
  height: 26.8px;
  color: var(--company-color);
}

@media (max-width: 480px) {
  .calendar-local-cards {
    flex-direction: column;
  }
}

/* ---------- Full-width footer background ---------- */
.site-footer {
  width: 100%;
  background: var(--footer-bg);
}

.footer-inner {
  min-height: 180px;
  padding: 30px 0 22px;
  display: grid;
  grid-template-columns: 1.1fr 1.0fr 1.15fr;
  grid-template-rows: auto auto;
  column-gap: 35px;
  align-items: start;
}

.logo-footer {
  width: 190px;
  margin-top: 8px;
}

.footer-security,
.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  text-align: center;
  font-size: 15px;
}

.footer-contact {
    align-items: end!important;
}

.footer-security strong,
.footer-contact strong {
  font-weight: 800;
}

.footer-security-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-security span,
.footer-contact span {
  font-size: 16px;
  font-weight:600;
}

.security-icon {
  width: 153px;
  height: auto;
  aspect-ratio: 4.093 / 1;
  margin-bottom: 0;
}

.footer-contact span {
  font-size: 22px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.phone-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
}

.footer-link-button {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: none;
}

.copyright {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  font-weight: var(--fw-medium);
  color: var(--footer-legal-color);
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  :root { --page-width: 816px; }

  .page-width {
    width: min(100% - 28px, var(--page-width));
  }

  .header-inner { height: 92px; }
  .logo-header, .logo-footer { width: 150px; }

  .main-content {
    min-height: auto;
    padding-top: 42px;
    padding-bottom: 42px;
  }

  h1 { font-size: 24px; margin-bottom: 25px; }

  .order-banner { min-height: 112px; padding: 18px; }
  .banner-title { font-size: 14px; }
  .banner-title-highlight { font-size: 20px; }
  .order-number { font-size: 14px; }
  .banner-icon { width: 78px; height: 62px; }

  .current-stage { padding: 18px 14px 23px; }
  .current-stage h2 { font-size: 16px; margin-bottom: 18px; }

  .stage-progress::before {
    left: 8%;
    right: 8%;
    top: 21px;
  }

  .stage-dot { width: 42px; height: 42px; margin-bottom: 8px; }
  .stage-icon { width: 32px; height: 32px; }
  .stage-label { font-size: 9px; }

  .current-message { padding: 20px 14px; gap: 12px; }
  .current-message::after { left: 34px; top: 63px; }
  .message-check { width: 43px; height: 43px; flex-basis: 43px; }
  .message-check .icon { width: 28px; height: 28px; }
  .message-copy h3 { font-size: 16px; }
  .message-copy p { font-size: 14px; }

  .calendar-local-block {
    width: calc(100% + 55px);
    margin-left: -55px;
  }

  .history-list { padding-left: 57px; }
  .history-list::before { left: 34px; }
  .history-marker { left: -32px; }
  .history-item:not(:last-child)::before { left: -23px; }
  .history-title { font-size: 15px; }
  .history-date { font-size: 12px; }

  .history-toggle { font-size: 14px; }

  .action-grid {
    margin-top: 60px;
    gap: 7px;
  }

  .action-card {
    min-height: 110px;
    font-size: 14px;
    border-radius: 11px;
  }

  .action-icon { width: 48px; height: 48px; }

  .footer-inner {
    min-height: auto;
    padding: 25px 0;
    grid-template-columns: 1fr;
    gap: 24px 10px;
  }

  .footer-brand { display: flex; justify-content: center; }
  .footer-security, .footer-contact { font-size: 12px; }
  .footer-contact span { font-size: 16px; }
  .copyright { grid-column: 1 / -1; font-size: 11px; }
  .footer-contact { align-items: center !important;}

  .stage-action-button{
      font-size:14px;
      padding: 4px 4px 4px 10px;
  }
}

@media (max-width: 350px) {
    .stage-label {
        font-size: 7px;
    }
}

