/* Scoped additions only; existing card tokens and module styles are reused. */
.renewal-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:20px}.renewal-form label{display:flex;flex-direction:column;gap:6px;min-width:0}.renewal-form textarea{min-height:90px}.renewal-wide,.renewal-form>.modal-actions,.renewal-form>[data-error]{grid-column:1/-1}.renewal-dialog{max-width:900px;width:calc(100% - 32px);max-height:90dvh;overflow:auto}.renewal-event{padding:16px 0;border-bottom:1px solid var(--border,#d6e2dc)}.renewal-prose{text-align:justify;overflow-wrap:break-word;white-space:pre-wrap}.renewal-event small{display:block}.renewal-pending{padding:12px;display:grid;gap:10px;margin-bottom:12px}.renewal-form input[type=checkbox]{width:auto;align-self:flex-start}.renewal-table{overflow:auto}.renewal-table table{min-width:800px}.renewal-filters{flex-wrap:wrap}.renewal-filters label{min-width:130px}.renewal-form [hidden]{display:none}.renewal-form [data-error]{color:var(--danger,#b91c1c)}
@media(max-width:600px){.renewal-form{grid-template-columns:minmax(0,1fr);padding:12px}.renewal-dialog{width:calc(100% - 16px)}.renewal-detail .row-actions{flex-wrap:wrap;gap:10px}}

.renewal-filters input,.renewal-filters select{max-width:100%}


.renewal-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:20px}.renewal-summary article{padding:16px;min-width:0}.renewal-summary strong{display:block;font-size:1.8rem;color:var(--primary,#145d43);margin-top:8px}.renewal-table td:last-child button{display:block;margin:4px 0}.renewal-detail .row-actions{display:flex;gap:10px;flex-wrap:wrap}.renewal-detail button{max-width:100%}@media(max-width:700px){.renewal-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
.renewal-event>strong{display:block;margin-bottom:8px}
.renewal-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.renewal-filters label{display:grid;gap:8px;min-width:0;font-size:13px;font-weight:700}.renewal-filters input,.renewal-filters select,.renewal-form input:not([type=checkbox]),.renewal-form select,.renewal-form textarea{width:100%;min-width:0;border:1px solid var(--line);border-radius:12px;padding:13px 14px;background:var(--white);color:var(--ink)}.renewal-form label{font-size:13px;font-weight:700}.renewal-filters input:focus,.renewal-filters select:focus,.renewal-form input:focus,.renewal-form select:focus,.renewal-form textarea:focus{outline:2px solid var(--green2);outline-offset:1px}@media(max-width:700px){.renewal-filters{grid-template-columns:minmax(0,1fr)}}
/* Archive only: make use of wide screens without shrinking text. */
.archive-filters{align-items:end}.archive-table table{width:100%;table-layout:auto}.archive-table th:nth-child(1){width:25%}.archive-table th:nth-child(2){width:31%}.archive-table th:nth-child(3){width:14%}.archive-table th:nth-child(4){width:11%}.archive-table th:nth-child(5){width:9%}.archive-table th:nth-child(6){width:10%}.archive-table td:last-child button{margin-inline:auto;white-space:nowrap}.archive-table th,.archive-table td{padding-inline:12px}@media(min-width:1200px){.archive-filters{grid-template-columns:minmax(140px,1.4fr) minmax(120px,1.2fr) minmax(120px,1.2fr) minmax(100px,1fr) minmax(70px,.65fr) auto;gap:12px}.archive-filters>button{min-height:44px;white-space:nowrap}}
/* Canonical renewal read view: shared notification drawer tokens, no domain changes. */
body.renewal-read-open{overflow:hidden}
.renewal-dialog.renewal-detail-view{box-sizing:border-box;position:fixed;inset:0 0 0 auto!important;margin:0!important;height:100dvh;max-height:100dvh!important;width:min(520px,96vw)!important;max-width:100vw!important;border-radius:0;display:flex;flex-direction:column;overflow:hidden;padding:0;box-shadow:-22px 0 60px rgba(7,41,31,.2)}
.renewal-dialog.renewal-detail-view:not([open]){display:none}
.renewal-detail-view .drawer-head{flex-shrink:0;padding:22px 24px;gap:12px}
.renewal-detail-view .drawer-head>div{min-width:0}
.renewal-detail-view .drawer-head .eyebrow{font-size:10px;letter-spacing:.15em;margin:0 0 6px;white-space:normal;overflow-wrap:break-word}
.renewal-detail-view .drawer-head h3{margin:3px 0;font-size:18px}
.renewal-detail-view .drawer-head small{color:var(--muted);display:block}
.renewal-detail-view .drawer-head .icon{flex-shrink:0}
.renewal-detail-view .drawer-scroll{padding:20px 24px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;min-height:0;flex:1}
.renewal-detail-view .drawer-data{grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.renewal-detail-view :is(.drawer-data div,.drawer-history article>div){min-width:0}
.renewal-detail-view :is(dd,dt,summary,.drawer-head p,.drawer-head h3,.drawer-head small){text-align:left;word-break:normal;overflow-wrap:break-word;hyphens:none;letter-spacing:normal}
.renewal-detail-view .renewal-prose{font-size:13px;line-height:1.6;text-align:left;overflow-wrap:break-word;white-space:pre-wrap}
.renewal-detail-view h4{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#82908b;margin:22px 0 10px}
.renewal-detail-view .renewal-context{margin:0 0 14px}
.renewal-detail-view .renewal-context h4,.renewal-detail-view .renewal-context p{margin:0}
.renewal-detail-view .recurring-section{border-bottom:1px solid var(--line);padding:13px 0}
.renewal-detail-view .recurring-section summary{cursor:pointer;font-weight:750;line-height:1.4}
.renewal-detail-view .recurring-section summary:focus-visible{outline:2px solid var(--green);outline-offset:3px}
.renewal-detail-view .renewal-history{margin:0}
.renewal-detail-view .renewal-event{font-size:13px;line-height:1.5}
.renewal-detail-view .renewal-event :is(p,small,time){text-align:left;overflow-wrap:break-word;word-break:normal}
.renewal-detail-view .renewal-event p{margin:8px 0}
.renewal-detail-view .renewal-event small{font-size:11px;color:var(--muted)}
.renewal-detail-view .renewal-movements article{grid-template-columns:minmax(85px,.65fr) minmax(0,1.6fr)}
.renewal-detail-view .renewal-movements time{font-size:11px;color:var(--muted);white-space:nowrap}
.renewal-detail-view .renewal-movements .renewal-event>div>strong{display:block}
.renewal-detail-view .renewal-primary-action{padding-top:14px}
.renewal-detail-view .renewal-primary-action button{width:100%}
.renewal-detail-view .renewal-context-actions{padding:14px 0;border-bottom:1px solid var(--line)}
.renewal-detail-view .renewal-empty{font-size:12px;line-height:1.4;color:var(--muted);margin:12px 0}
@media(max-width:420px){.renewal-detail-view .drawer-scroll,.renewal-detail-view .drawer-head{padding:18px}.renewal-detail-view .drawer-head .icon{width:44px;height:44px;min-height:44px;padding:0}.renewal-detail-view .row-actions button{width:100%}}
@media(max-width:360px){.renewal-detail-view .drawer-data{grid-template-columns:minmax(0,1fr)}}
/* Exclusive semantic badge palette; never paints the card or its inherited activity border. */
html body .renewal-situation{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:24px;padding:4px 8px;border:1px solid var(--renewal-situation-bg);border-radius:5px;background:color-mix(in srgb,var(--renewal-situation-bg) 10%,transparent)!important;color:#1f2937!important;font-size:11px!important;font-weight:700!important;line-height:1.3!important;white-space:normal;overflow-wrap:normal;word-break:normal;hyphens:none;letter-spacing:normal;box-sizing:border-box;text-shadow:none}.action-panel .action-list .action-state strong:has(>.renewal-situation){background:transparent!important;padding:0!important;border:0!important}.renewal-detail-view .renewal-event>strong .renewal-situation{vertical-align:middle}

.action-panel .action-date>strong.renewal-license-days{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important}

/* Only the first three columns of the Renovações screen table. */
@media screen {
 html body #content .renewal-table table :is(th,td):nth-child(-n+3),
 html body #content .renewal-table table :is(th,td):nth-child(-n+3) * {
  text-align:left!important;text-align-last:left!important;
 }
}
