/* Local presentation for subscription and customer order history. */
.assinatura-page{gap:18px;color:#14213d;padding:24px;background:transparent}
.assinatura-page .subscription-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}
.assinatura-page h1{font-size:32px}.subscription-heading p{margin-top:8px;color:#526585}
.assinatura-page .btn-primary,.customer-order-history .btn-primary{background:#2563eb!important;border-color:#2563eb!important;color:white!important}
.assinatura-page .subscription-panel,.assinatura-page .assinatura-section{background:white;border:1px solid #e1e8f2;border-radius:12px;padding:18px;box-shadow:0 3px 14px #14213d04}
.subscription-overview{display:grid;grid-template-columns:1fr 1fr;padding:6px 10px 16px;gap:40px}
.subscription-plan{display:flex;gap:28px;padding:4px 0 20px}.subscription-crown{width:72px;height:72px;display:grid;place-items:center;border-radius:14px;background:#edf4ff;color:#2563eb;flex:none}
.assinatura-page .subscription-crown svg{width:36px;height:36px}.subscription-plan p,.subscription-due p{color:#526585;line-height:1.7}
.subscription-plan-name{display:flex;align-items:center;gap:18px;margin:8px 0 12px}.assinatura-page .subscription-plan-name h2{font-size:38px}.subscription-price{display:block;font-size:23px;margin-bottom:4px}.subscription-price small{font-size:18px;color:#526585;font-weight:400}
.subscription-due{border-left:1px solid #e1e8f2;padding-left:60px}.subscription-due>strong{font-size:32px}.subscription-remaining{display:flex;gap:10px;align-items:center;margin:5px 0 14px;font-weight:600}.subscription-payment{border-top:1px solid #e1e8f2;padding-top:9px}.subscription-payment span{display:flex;gap:8px;align-items:center;font-weight:600}.subscription-payment small{display:block;color:#526585;margin-top:4px}
.assinatura-page .is-success{color:#078448}.assinatura-page .is-warning{color:#bd7200}.assinatura-page .is-danger{color:#b42318}
.subscription-actions{display:flex;gap:14px;align-items:center;border-top:1px solid #e1e8f2;padding:14px 10px 0}.subscription-actions .btn{padding:12px 28px}.subscription-cancel{margin-left:auto;border:0;background:transparent;color:#526585;text-decoration:underline;font:inherit;cursor:pointer;padding:12px}
.assinatura-page .assinatura-section h2{font-size:21px}.subscription-details h2,.assinatura-page .assinatura-section__head{border-bottom:1px solid #e1e8f2;padding:0 6px 12px}
.subscription-details dl{display:grid;grid-template-columns:1fr 1fr;grid-auto-flow:column;grid-template-rows:repeat(2,auto);column-gap:64px;margin:0 8px}.subscription-details dl>div{display:grid;grid-template-columns:1.2fr 1fr;gap:12px;padding:10px 0;border-bottom:1px solid #e1e8f2}.subscription-details dl>div:nth-child(even){border:0}.subscription-details dt{color:#526585}.subscription-details dd{margin:0}
.assinatura-page .assinatura-benefits-grid{border:0;box-shadow:none;padding:0 10px;gap:16px 24px}.assinatura-page .assinatura-benefit{background:transparent;border:0;padding:0;min-height:28px;border-radius:0;gap:24px}.assinatura-page .assinatura-benefit>span{width:22px;height:22px;background:#2563eb;color:white}.assinatura-page .assinatura-benefits-toggle{color:#2563eb;text-decoration:underline}.assinatura-page .assinatura-alert{padding:14px 22px;gap:22px}.assinatura-page .assinatura-alert p{margin-top:3px;color:#526585}
#app[data-page^="clientes"] .customer-order-history{grid-template-columns:minmax(0,1fr);gap:20px;color:#14213d}
.customer-order-history .va-customer-summary{position:static;min-height:0;display:flex;align-items:center;gap:28px;padding:22px 28px;background:white;border:1px solid #e1e8f2;border-radius:16px}
.customer-order-history .va-summary-profile{border:0;padding:0;flex:1;min-width:0}.customer-order-history .va-summary-profile strong{font-size:25px}.customer-order-history .va-avatar--lg{width:72px;height:72px;background:#eaf0ff;color:#2563eb;font-size:26px}
.customer-order-history .va-contact-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:3;margin:0;gap:0}.customer-order-history .va-contact-list>div{border-left:1px solid #e1e8f2;padding:0 24px}.customer-order-history .va-contact-list dt{text-transform:none;letter-spacing:0;font-size:13px;color:#7383a3}.customer-order-history .va-contact-list dd{font-size:15px;color:#14213d}.customer-order-history .va-summary-change{width:auto;margin:0;padding:12px 30px}
.customer-order-history .va-history-main{gap:20px}.customer-order-history .va-history-controls{display:block;padding:16px}.customer-order-history .va-history-controls.has-customer{display:none}.customer-order-history .va-history-search{max-width:680px;width:100%}
.customer-order-history .va-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:0;background:white;border:1px solid #e1e8f2;border-radius:16px;padding:24px 0}.customer-order-history .va-kpi-card{background:transparent!important;box-shadow:none!important;border:0!important;border-right:1px solid #e1e8f2!important;border-radius:0!important;padding:0 28px;min-height:84px}.customer-order-history .va-kpi-card:last-child{border-right:0!important}.customer-order-history .va-kpi-card__value{font-size:25px;color:#14213d}.customer-order-history .va-kpi-card__title,.customer-order-history .va-kpi-card__subtitle{color:#7383a3}
.customer-orders-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 28px}.customer-orders-heading h2{margin:0;font-size:23px}.customer-orders-heading p{margin:6px 0 0;color:#7383a3}.customer-date-filters{display:flex;gap:16px;align-items:end}.customer-date-filters .va-filter-field{min-width:150px}.customer-date-filters .btn{min-height:44px;white-space:nowrap}.customer-date-filters #cl-hist-clear{border:0;background:transparent}
.customer-order-history .va-history-results{overflow:hidden}.customer-order-history .va-clients-history-table{width:100%;min-width:0;table-layout:fixed}.customer-order-history .va-empty-state{min-height:180px;padding:26px 14px;gap:10px}.customer-order-history .va-empty-icon{background:#edf4ff;color:#2563eb}.customer-order-history .va-history-table-wrap{min-height:0}.customer-order-history [hidden]{display:none!important}
@media(max-width:1200px){.customer-orders-heading{align-items:start;flex-direction:column}.customer-date-filters{flex-wrap:wrap;width:100%}.customer-order-history .va-customer-summary{flex-wrap:wrap}.customer-order-history .va-contact-list{flex-basis:65%}.customer-order-history .va-kpi-card{padding:0 16px}.subscription-due{padding-left:28px}}
@media(max-width:760px){.assinatura-page{padding:12px}.assinatura-page .subscription-heading{align-items:start;flex-direction:column}.assinatura-page h1{font-size:26px}.subscription-overview{grid-template-columns:1fr;gap:12px}.subscription-plan{gap:16px}.subscription-due{border-left:0;border-top:1px solid #e1e8f2;padding:16px 0 0}.subscription-actions{flex-wrap:wrap;padding-inline:0}.subscription-actions .btn{width:100%;padding:12px}.subscription-cancel{margin:0}.subscription-details dl{display:block;margin:0}.subscription-details dl>div{grid-template-columns:1fr 1fr}.assinatura-page .assinatura-benefits-grid{grid-template-columns:1fr;padding:0}.customer-order-history .va-customer-summary{padding:18px;gap:18px}.customer-order-history .va-contact-list{grid-template-columns:1fr;flex-basis:100%;gap:12px}.customer-order-history .va-contact-list>div{padding:0;border:0}.customer-order-history .va-summary-change{width:100%}.customer-order-history .va-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;row-gap:20px}.customer-order-history .va-kpi-card{min-width:0;overflow-wrap:anywhere}.customer-order-history .va-kpi-card__value{font-size:22px}.customer-orders-heading{padding:18px}.customer-date-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.customer-date-filters .va-filter-field{min-width:0}.customer-date-filters input{width:100%;min-width:0}.customer-date-filters .btn{white-space:normal}.customer-order-history .va-empty-state{min-height:160px}}
@media(max-width:760px){.customer-order-history .va-history-table-wrap:not([hidden]) thead{display:none}.customer-order-history .va-history-table-wrap:not([hidden]) td{white-space:normal}.assinatura-page .assinatura-section__head{align-items:start;flex-wrap:wrap}}
#app[data-page^="clientes"] .customer-order-history .va-customer-summary{min-height:0}
#app[data-page^="clientes"] .customer-order-history .va-avatar--lg{width:72px;height:72px}
#app[data-page^="clientes"] .customer-order-history .va-kpi-card__value{font-size:25px}
#app[data-page^="clientes"]>.va-client-page-head:has(+.va-client-page +.customer-order-history) .btn-primary{background:#2563eb!important;border-color:#2563eb!important;color:white!important}
#app[data-page^="clientes"] .customer-order-history .va-kpi-card__value{font-size:25px!important;line-height:1.3}
#app[data-page^="clientes"] .customer-order-history .va-kpi-card__title,#app[data-page^="clientes"] .customer-order-history .va-kpi-card__subtitle{font-size:14px!important}
#app[data-page^="clientes"] .customer-order-history .va-clients-history-table tr:has(.va-empty-state),#app[data-page^="clientes"] .customer-order-history .va-clients-history-table tr:has(.va-empty-state)>td{background:white!important}
#app[data-page^="clientes"]>.va-client-page-head:has(+.va-client-page +.customer-order-history) h1{font-size:28px}
@media(max-width:760px){#app[data-page^="clientes"] .customer-order-history .va-kpi-card__value{font-size:22px!important}#app[data-page^="clientes"]>.va-client-page-head:has(+.va-client-page +.customer-order-history) h1{font-size:24px}}

/* A seleção vazia ocupa um único card após a busca. */
#app[data-page^="clientes"] .customer-order-history{display:flex;flex-direction:column}
.customer-order-history .va-history-main{display:contents}
.customer-order-history .va-history-controls{order:-2;width:100%;box-sizing:border-box}
.customer-order-history .va-customer-summary{order:-1;width:100%;box-sizing:border-box}
.customer-order-history .va-history-controls.has-customer{display:block}
.customer-order-history .va-history-search{max-width:none}
.customer-order-history .va-history-results,.customer-order-history #cl-hist-kpis,.customer-order-history .history-selection-empty{width:100%;box-sizing:border-box}
.customer-order-history .history-selection-empty .va-summary-empty{min-height:230px;box-sizing:border-box;justify-content:center;padding:32px 20px!important}
.customer-order-history .va-search-field:before{content:none!important}
.customer-order-history .va-history-results{overflow:visible}
