.operational-page {
  max-width: 1700px;
  margin: 0 auto;
  padding: 28px;
  color: #131722;
  font-family: inherit;
}
.operational-page h1 {
  font-size: 25px;
  margin: 0 0 24px;
}
.operational-page h2 {
  font-size: 21px;
  margin-top: 28px;
}
.op-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.client-register-options {
  position: fixed;
  margin: 0;
  width: 220px;
  padding: 6px;
  border: 1px solid #d2d9e1;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 18px #1317221a;
}
.client-register-options button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
}
.operational-page button,
.op-dialog button {
  border: 1px solid #d2d9e1;
  background: #fff;
  color: #263449;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 600;
}
.operational-page button:hover,
.op-dialog button:hover {
  background: #f4f4f5;
  border-color: #b9bdc4;
}
.operational-page button:disabled {
  opacity: 0.5;
  cursor: default;
}
.operational-page input,
.operational-page select,
.op-dialog input,
.op-dialog select {
  padding: 10px;
  border: 1px solid #aeb9c6;
  border-radius: 6px;
  font-size: 15px;
  max-width: 100%;
  min-width: 0;
}
.op-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin: 20px 0;
  text-align: left;
}
.op-table th {
  font-size: 13px;
  text-transform: none;
  color: #626b7a;
  background: #fff;
}
.op-table th,
.op-table td {
  padding: 12px;
  border-bottom: 1px solid #e4e8ee;
}
.op-table input {
  width: 110px;
}
.op-table button {
  padding: 7px 10px;
}
.op-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 24px 0;
}
.op-card {
  border: 1px solid #e1e7ed;
  border-radius: 16px;
  padding: 25px;
  background: #fff;
}
.op-card span {
  display: block;
  color: #5b6779;
}
.op-card strong {
  display: block;
  font-size: 30px;
  margin-top: 15px;
}
.op-message {
  padding: 12px;
  background: #edf6ff;
  border-left: 4px solid #2474b4;
}
.op-message:empty {
  display: none;
}
.op-message.is-error {
  background: #ffe4e4;
  border-color: #c50019;
  color: #85000f;
}
.op-dialog {
  border: 1px solid #d4dbe3;
  border-radius: 16px;
  padding: 28px;
  width: min(740px, 90vw);
  max-height: 85vh;
  overflow: auto;
  color: #202733;
}
.op-dialog, .op-dialog input, .op-dialog select, .op-dialog button {
  font-family: inherit;
}
.op-dialog form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.op-dialog form > h2, .op-dialog form > .op-actions,
.op-dialog form > .op-message, .op-dialog form > label:only-of-type {
  grid-column: 1 / -1;
}
.op-dialog form > h2 { margin: 0 0 8px; font-size: 26px; }
.op-dialog form > label { margin: 0; color: #626975; }
.op-dialog .historical-primary { background: #171717; color: #fff; border-color: #171717; }
.op-dialog .historical-primary:hover { background: #343434; }
.op-dialog .op-actions { border-top: 1px solid #e6e8eb; padding-top: 18px; margin-bottom: 0; }
.op-table.clients-table { table-layout: auto; min-width: 0; }
.op-table.clients-table th { font-weight: 400; }
.op-table.clients-table th, .op-table.clients-table td { width: auto; padding: 12px 18px; }
.op-table.clients-table td { font-size: 15px; }
.op-table.clients-table tbody tr:hover { background: #f4f4f5; }
.op-table.clients-table tbody td[colspan] { height: 160px; text-align: center; color: #6b7280; }
.operational-page > p { color: #6b7280; font-size: 14px; line-height: 1.6; }
.operational-page > .operational-page { padding: 24px 0; border-top: 1px solid #eceef0; margin-top: 24px; }
.operational-page details { border: 1px solid #e6e8eb; border-radius: 8px; padding: 16px; margin: 20px 0; }
.operational-page summary { cursor: pointer; font-weight: 700; }
.admin-home > .op-actions { justify-content: flex-end; font-size: 13px; color: #757575; }
.admin-home > .op-actions button { padding: 6px 10px; border-radius: 6px; }
.admin-home > .op-actions button:hover { background: #f2f2f2; }
.billing-page .bill-table-panel { margin-top: 24px; padding-bottom: 18px; }
.billing-page .op-table { margin-top: 0; }
.billing-page .op-table th { background: #f6f8f6; color: #66756a; font-size: 12px; }
.billing-page .bill-button.primary { margin-left: 18px; background: #245b40; border-color: #245b40; color: white; }
.billing-page .op-table input { width: 100%; min-width: 80px; }
@media (max-width: 600px) {
  .op-dialog form { grid-template-columns: 1fr; }
  .op-dialog { padding: 20px; }
}
.op-dialog::backdrop {
  background: #16223670;
}
.op-dialog form > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 14px 0;
  font-size: 14px;
}
.op-dialog .op-actions {
  justify-content: flex-end;
}
.reading-invalid {
  background: #ffc0c5 !important;
  border: 3px solid #bd001c !important;
  color: #76000b !important;
}
.reading-warning {
  background: #ffe080 !important;
  border: 3px solid #b87b00 !important;
  color: #5c3c00 !important;
}
.op-reading-status {
  font-size: 13px;
  font-weight: 600;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #2475b8;
  outline-offset: 2px;
}
@media (max-width: 850px) {
  .op-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .operational-page {
    padding: 16px;
    overflow-x: auto;
  }
  .op-table {
    min-width: 600px;
  }
}

.operational-page [hidden] { display: none !important; }
.operational-page .settings-layout { min-height: 550px; border: 1px solid #e7e7e7; border-radius: 12px; overflow: hidden; margin-top: 24px; }
.operational-page .settings-content > .operational-page { padding: 0; }
.operational-page .settings-nav button { border: 0; font-weight: 400; }
.operational-page .settings-nav button[aria-selected="true"] { font-weight: 700; }
.clients-page > .op-actions { justify-content: flex-end; margin: 0 0 18px; }
.clients-page > .op-actions input[type="search"] { margin-right: auto; width: 355px; font: inherit; font-size: 14px; }
.client-profile-real { border-top: 1px solid #eceef0; margin-top: 24px; }
@media(max-width: 700px) { .operational-page .settings-layout { grid-template-columns: 1fr; } .operational-page .settings-nav { border-right: 0; border-bottom: 1px solid #e9e9e9; } }
.enrollment-dialog { width: min(680px, calc(100vw - 32px)); padding: 28px; }
.enrollment-dialog > h2 { margin: 0 0 22px; font-size: 26px; }
.enrollment-progress { display: flex; padding: 0; list-style: none; gap: 16px; counter-reset: step; margin: 0 0 28px; }
.enrollment-progress li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; color: #7b818a; counter-increment: step; }
.enrollment-progress li::before { content: counter(step); display: grid; place-items: center; border-radius: 50%; background: #f0f1f3; width: 28px; height: 28px; flex-shrink: 0; }
.enrollment-progress [aria-current] { color: #171717; font-weight: 700; }
.enrollment-progress [aria-current]::before { background: #171717; color: #fff; }
.enrollment-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 18px; }
.enrollment-dialog [hidden] { display: none !important; }
.enrollment-field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: #626975; min-width: 0; }
.enrollment-field input, .enrollment-field select { width: 100%; height: 44px; }
.mz-contact { display: flex; align-items: center; gap: 7px; border: 1px solid #aeb9c6; border-radius: 6px; padding-left: 10px; color: #242b34; background: #fff; }
.mz-contact img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.mz-contact span { font-size: 13px; }
.op-dialog .mz-contact input { border: 0; width: 100%; padding: 8px; background: transparent; }
.enrollment-summary { margin: 22px 0; padding: 20px; border: 1px solid #e1e6e2; border-radius: 12px; background: #f7f9f7; }
.enrollment-summary h3 { margin: 0 0 10px; font-size: 26px; color: #171717; overflow-wrap: anywhere; }
.enrollment-summary p { margin: 6px 0; font-size: 16px; }
.enrollment-amount { display: block; font-size: 36px; color: #245b40; margin-top: 6px; }
.enrollment-dialog > .op-actions { margin-top: 26px; justify-content: flex-end; flex-wrap: wrap; }
.enrollment-dialog .historical-primary { background: #171717; color: #fff; }
.contract-receipt { width: min(620px, calc(100vw - 32px)); }
.receipt-brand { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.receipt-code { font-weight: 700; }
.receipt-customer { font-size: 24px; margin-top: 28px; }
.receipt-amount { display: block; font-size: 36px; margin: 24px 0; }
.receipt-reference { font-size: 11px; overflow-wrap: anywhere; }
@media (max-width: 560px) { .enrollment-grid { grid-template-columns: 1fr; } .enrollment-progress { gap: 8px; } .enrollment-progress li { flex-direction: column; align-items: flex-start; } }
@media print {
  body:has(.contract-receipt[open]) > :not(.contract-receipt) { display: none !important; }
  .contract-receipt[open] { position: static; width: 100%; max-height: none; border: 0; padding: 12mm; overflow: visible; }
  .contract-receipt .op-actions { display: none; }
  .contract-receipt::backdrop { display: none; }
}

/* Integrated screens reuse the approved typography, profile tabs and table rhythm. */
.operational-page { width: 100%; min-width: 0; }
.operational-page > h1 { padding-bottom: 20px; border-bottom: 1px solid #eceef0; }
.operational-page .op-table-scroll { width: 100%; overflow: auto; border: 1px solid #e4e7eb; border-radius: 10px; margin: 20px 0; background: #fff; }
.operational-page .op-table-scroll .op-table { margin: 0; min-width: 620px; }
.operational-page .op-table th { background: #f8f9fa; font-weight: 600; white-space: nowrap; }
.operational-page .op-table td { vertical-align: middle; }
.operational-page .op-table tr:last-child td { border-bottom: 0; }
.operational-page .op-table td .op-actions { margin: 0; gap: 6px; }
.operational-page .op-table td:first-child { font-weight: 600; }
.operational-page button { font-family: inherit; font-size: 14px; }
.operational-page .profile-tabs { margin-top: 28px; }
.operational-page .profile-tabs button { border: 0; border-radius: 0; padding: 12px 0 16px; background: transparent; font-size: 16px; color: #777; }
.operational-page .profile-tabs button[aria-selected="true"] { color: #171717; }
.operational-page .profile-panel { min-height: 240px; }
.operational-page .profile-panel > p { color: #626b7a; line-height: 1.6; }
.operational-page .profile-panel > .operational-page { padding: 0; }
.operational-page.client-profile-real { padding: 0; border: 0; }
.operational-page.client-profile-real .profile-summary h1 { font-size: clamp(30px, 3vw, 42px); margin-bottom: 12px; }
.operational-page.client-profile-real > .op-actions { justify-content: flex-end; }
.operational-page .bill-period-field { display: flex; align-items: center; gap: 12px; font-size: 14px; color: #66756a; }
.operational-page .bill-table-toolbar { justify-content: space-between; padding: 16px 0; }
.operational-page .bill-footer { display: flex; justify-content: space-between; padding: 16px 18px; margin: 0; color: #66756a; font-size: 13px; }
.operational-page .bill-table-panel { padding-bottom: 0; overflow: hidden; }
.operational-page .bill-table-panel > .op-table-scroll { border: 0; border-radius: 0; margin: 0; }
.operational-page[data-page="Ajuda"] > p, .operational-page[data-page="Ligação e sincronização"] > p { max-width: 900px; padding: 24px; border: 1px solid #e4e7eb; border-radius: 12px; background: #fafbfc; font-size: 16px; line-height: 1.8; }
.operational-page .settings-content { min-width: 0; }
@media(max-width: 850px) {
  .operational-page { overflow-x: visible; }
  .operational-page .profile-tabs { gap: 20px; }
  .operational-page .bill-period-field { flex-wrap: wrap; }
}
