/* Contract folder and numbered product portfolio. Scoped to the main screen. */
body[data-view="overview"] .page-heading { margin-bottom: 22px; }
body[data-view="overview"] h1 { font-size: clamp(28px,2.7vw,43px); letter-spacing: -1.6px; }
.client-workspace { --desk-line: #b8c9e9; --desk-muted: #586f9d; }
.client-workspace button,.client-workspace a { -webkit-tap-highlight-color: transparent; }
.client-utility-bar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid var(--desk-line); }
.client-utility-links { display: flex; gap: 26px; align-items: center; }
.client-utility-links button,.client-utility-links a { display: inline-flex; gap: 8px; align-items: center; border: 0; padding: 4px 0; background: none; color: #001774; font-size: var(--type-small); font-weight: 600; }
.client-utility-links button:hover,.client-utility-links a:hover { color: #3155c4; }
.client-utility-links .icon { width: 16px; height: 16px; color: #5f78ad; }
.client-wallet { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 18px; background: #cedbf4; border: 1px solid #b7c8e9; border-radius: 100px; }
.client-wallet a { display: flex; gap: 12px; align-items: baseline; color: #001774; }
.client-wallet a > span { color: var(--desk-muted); font-size: var(--type-small); }
.client-wallet a > strong { font-size: var(--type-body); font-weight: 700; }
.client-wallet button { display: grid; place-items: center; width: 29px; height: 29px; border: 0; border-radius: 50%; background: #001774; color: #ffeb13; }
.client-wallet button:hover { background: #2c48a3; }
.client-workspace-grid { display: grid; grid-template-columns: minmax(275px,.82fr) minmax(0,1.65fr); gap: 31px; align-items: start; }
.workspace-kicker { display: block; font-size: var(--type-small); letter-spacing: 1.3px; font-weight: 650; color: var(--desk-muted); }
.license-portfolio { padding-top: 18px; min-width: 0; }
.portfolio-heading { display: flex; justify-content: space-between; align-items: flex-start; }
.portfolio-heading h2 { margin-top: 10px; font-size: 29px; letter-spacing: -1.2px; font-weight: 700; color: #001774; }
.portfolio-dot { color: #e82a21; margin-left: 1px; }
.portfolio-heading p { color: var(--desk-muted); font-size: var(--type-small); margin-top: 8px; }
.portfolio-edition { writing-mode: vertical-rl; font-size: var(--type-small); letter-spacing: 1.1px; color: #7c91b7; padding-top: 1px; }
.portfolio-summary { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 17px; padding: 14px 0 18px; }
.portfolio-summary > div:first-child { display: flex; align-items: baseline; gap: 7px; }
.portfolio-summary strong { font-size: 52px; font-weight: 500; line-height: 1.1; letter-spacing: -3px; color: #001774; }
.portfolio-summary > div > span { font-size: 18px; letter-spacing: -1px; color: #7d94be; }
.portfolio-summary p { font-size: var(--type-small); line-height: 1.7; color: var(--desk-muted); }
.license-progress { grid-column: 1 / -1; display: flex; gap: 5px; margin-top: 12px; }
.license-progress i { height: 4px; flex: 1; background: #b6c7e8; border-radius: 1px; }
.license-progress i.is-owned { background: #001774; }
.portfolio-filters { display: flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid #b7c8e9; border-radius: 11px; margin-bottom: 12px; background: #d4def2; }
.portfolio-filters button { flex: 1; border: 0; border-radius: 7px; background: transparent; color: #536d9e; padding: 8px 3px; font-size: var(--type-small); white-space: nowrap; }
.portfolio-filters button.active { background: #001774; color: #fff; }
.portfolio-filters button span { margin-left: 3px; opacity: .64; font-size: var(--type-small); }
.license-list { display: grid; gap: 5px; }
.license-item { position: relative; display: grid; grid-template-columns: 28px minmax(0,1fr) 25px; gap: 9px; align-items: center; width: 100%; min-height: 60px; border: 1px solid #b7c9e9; border-radius: 2px 13px 13px 13px; text-align: left; padding: 10px 11px; background: #cddbf4; color: #001774; transition: background .18s,transform .18s; }
.license-item.is-owned { background: #edf2fc; border-color: #c4d3ee; }
.license-item::before { content: ''; position: absolute; width: 16px; height: 3px; background: #7f97c4; left: -1px; top: -1px; border-radius: 0 0 2px 0; }
.license-item.is-owned::before { background: #001774; }
.license-item:hover { background: #e0e9fd; transform: translateX(3px); }
.license-index { align-self: start; padding-top: 3px; color: #7089b4; font-size: var(--type-small); font-variant-numeric: tabular-nums; }
.license-name { display: block; font-size: var(--type-body); font-weight: 650; line-height: 1.5; color: #001774; }
.license-state { display: flex; gap: 5px; align-items: center; font-size: var(--type-small); color: #526b9a; margin-top: 4px; }
.license-state .icon { width: 11px; height: 11px; color: #7b90b7; }
.is-owned .license-state { color: #247455; }
.is-owned .license-state .icon { color: #247455; }
.license-arrow { display: grid; place-items: center; width: 25px; height: 25px; background: #bbcdee; border-radius: 50%; color: #355694; }
.is-owned .license-arrow { background: #dce6f7; }
.license-arrow .icon { width: 13px; height: 13px; }
.portfolio-footer { display: flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--desk-muted); font-size: var(--type-small); }
.portfolio-footer > .icon { width: 15px; height: 15px; flex-shrink: 0; }
.portfolio-footer button { border: 0; background: transparent; color: #001774; padding: 3px; margin-left: auto; }
.contract-folder { min-width: 0; position: relative; padding-top: 32px; }
.folder-ear { position: absolute; top: 0; left: 0; height: 33px; display: flex; gap: 8px; align-items: center; background: #ffeb13; color: #001774; padding: 0 24px; width: 250px; font-size: var(--type-small); font-weight: 750; letter-spacing: .7px; border-radius: 15px 20px 0 0; }
.folder-ear::after { content: ''; position: absolute; right: -15px; bottom: 0; width: 28px; height: 20px; background: #ffeb13; transform: skewX(35deg); border-top-right-radius: 8px; z-index: 0; }
.folder-ear span { margin-left: auto; font-size: var(--type-small); letter-spacing: .3px; z-index: 1; }
.folder-surface { position: relative; overflow: hidden; border: 1px solid #aac0e7; border-radius: 0 19px 19px 19px; background: #e9f0fe; box-shadow: 0 15px 34px #193b7b08; }
.contract-heading { display: flex; justify-content: space-between; align-items: center; padding: 25px 27px 19px; background: #c7d8f6; }
.contract-heading h2 { font-size: 34px; letter-spacing: -1.4px; font-weight: 700; color: #001774; margin-top: 8px; }
.expiry-notification { display: flex; align-items: center; gap: 8px; color: #46608f; font-size: var(--type-small); line-height: 1.5; cursor: pointer; }
.expiry-notification > .icon { color: #001774; width: 17px; height: 17px; }
.expiry-notification .form-check-input { width: 30px; height: 17px; border-radius: 100px; margin: 0 0 0 4px; cursor: pointer; border-color: #8ca5d3; background-color: #aec3e9; appearance: none; background-image: none; position: relative; box-shadow: none; }
.expiry-notification .form-check-input::after { content: ''; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: #eaf0fd; left: 2px; top: 2px; transition: left .15s; }
.expiry-notification .form-check-input:checked { background: #001774; border-color: #001774; }
.expiry-notification .form-check-input:checked::after { left: 15px; background: #ffeb13; }
.expiry-notification .form-check-input:focus-visible { outline: 3px solid #e82a21; outline-offset: 3px; }
.contract-selector-row { display: flex; align-items: stretch; gap: 12px; padding: 0 27px 24px; background: #c7d8f6; }
.contract-selector { flex: 1; min-width: 0; position: relative; padding: 11px 15px 6px; border: 1px solid #a2b8df; background: #d9e5fa; border-radius: 10px; }
.contract-selector label { display: block; font-size: var(--type-small); font-weight: 600; letter-spacing: 1px; color: #627ca7; margin-bottom: 4px; }
.contract-selector select { width: 100%; border: 0; background: transparent; color: #001774; font-size: var(--type-body); font-weight: 650; padding: 3px 16px 3px 0; cursor: pointer; outline-offset: 3px; }
.renew-all-button { display: flex; align-items: center; justify-content: center; gap: 13px; border: 0; border-radius: 10px; background: #001774; color: #ffeb13; padding: 12px 17px; font-size: var(--type-small); font-weight: 700; white-space: nowrap; }
.renew-all-button:hover { background: #274499; }
.renew-all-button .icon { width: 16px; height: 16px; }
.contract-tabs { display: flex; gap: 2px; border-top: 1px solid #a8bfe5; border-bottom: 1px solid #bdcce8; padding: 0 22px; background: #dce7fa; }
.contract-tabs button { position: relative; flex: 1; background: none; border: 0; color: #5c739f; padding: 20px 7px; font-size: var(--type-small); font-weight: 650; white-space: nowrap; }
.contract-tabs button[aria-selected="true"] { color: #001774; }
.contract-tabs button[aria-selected="true"]::after { content: ''; position: absolute; bottom: -1px; left: 9px; right: 9px; height: 3px; border-radius: 2px 2px 0 0; background: #001774; }
.contract-tabs button span { display: inline-block; margin-left: 5px; padding: 1px 5px; border-radius: 4px; background: #c5d6f1; color: #5673a6; font-size: var(--type-small); }
.contract-tabs button[aria-selected="true"] span { background: #ffeb13; color: #001774; }
.contract-content { padding: 22px; min-height: 390px; }
.subscription-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 22px; }
.subscription-caption > div { display: flex; align-items: center; gap: 6px; }
.subscription-caption strong { color: #2b735c; font-size: var(--type-small); font-weight: 600; }
.subscription-caption strong.has-due { color: #94620d; }
.subscription-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #2b8060; }
.subscription-caption > span { color: #6b81a8; font-size: var(--type-small); }
.subscription-matrix table { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; margin: 0; }
.subscription-matrix th,.subscription-matrix td { vertical-align: middle; text-align: center; }
.subscription-matrix thead th { background: #d2dff7; border-top: 1px solid #b4c7e8; padding: 15px 5px; font-weight: 600; }
.subscription-matrix thead th:first-child { width: 24%; border-radius: 10px 0 0 0; border-left: 1px solid #b4c7e8; color: #5a719c; font-size: var(--type-small); text-align: left; padding-left: 14px; }
.subscription-matrix thead th:last-child { border-radius: 0 10px 0 0; border-right: 1px solid #b4c7e8; }
.matrix-station-number { display: block; color: #001774; font-size: 18px; font-weight: 750; letter-spacing: -.7px; }
.matrix-station-owner { display: block; margin-top: 4px; color: #5e77a5; font-size: var(--type-small); }
.subscription-matrix tbody th { border-left: 1px solid #b4c7e8; border-top: 1px solid #c3d2eb; background: #dce7fa; padding: 16px 10px 16px 14px; text-align: left; }
.provider-monogram { display: block; width: 26px; height: 26px; border-radius: 7px; background: #ffeb13; color: #001774; text-align: center; line-height: 26px; font-size: var(--type-body); font-weight: 800; margin-bottom: 7px; }
.provider-benzuber { background: #001774; color: #eef3ff; }
.provider-fuelup { background: #cad9f3; color: #001774; border: 1px solid #a9bfdf; }
.provider-name { display: block; font-size: var(--type-small); font-weight: 650; color: #001774; overflow-wrap: anywhere; }
.subscription-matrix tbody td { border-left: 1px solid #c5d3ec; border-top: 1px solid #c3d2eb; padding: 17px 5px; background: #eef4ff; }
.subscription-matrix tbody td:last-child { border-right: 1px solid #b4c7e8; }
.service-cell-status { display: inline-flex; align-items: center; gap: 3px; font-size: var(--type-small); color: #217352; }
.service-cell-status .icon { width: 11px; height: 11px; }
.service-cell-date { display: block; font-size: var(--type-small); color: #001774; font-weight: 650; margin-top: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.service-cell-date small { font-weight: 400; font-size: var(--type-small); margin-right: 3px; color: #768caf; }
.service-cell-status.is-due { color: #9c6712; }
.subscription-matrix tfoot td { border-top: 1px solid #b8cbe8; border-bottom: 1px solid #b4c7e8; background: #dbe6f9; padding: 12px 4px; }
.subscription-matrix tfoot td:first-child { border-left: 1px solid #b4c7e8; border-radius: 0 0 0 10px; text-align: left; padding-left: 14px; font-size: var(--type-small); color: #647da6; }
.subscription-matrix tfoot td:last-child { border-right: 1px solid #b4c7e8; border-radius: 0 0 10px 0; }
.station-renew-button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: #001774; color: #f1f5ff; border-radius: 7px; padding: 8px 10px; font-size: var(--type-small); font-weight: 600; }
.station-renew-button .icon { width: 12px; height: 12px; color: #ffeb13; }
.station-renew-button:hover { background: #304b9c; }
.contract-status-line { display: flex; gap: 7px; align-items: center; margin-top: 18px; font-size: var(--type-small); color: #5e77a0; line-height: 1.6; }
.contract-status-line .icon { width: 15px; height: 15px; color: #6383b3; flex-shrink: 0; }
.folder-footer { display: flex; gap: 10px; align-items: center; justify-content: space-between; border-top: 1px dashed #b7c9e8; padding: 17px 23px; background: #e0e9fa; color: #6c83ab; font-size: var(--type-small); }
.folder-footer > span,.folder-footer a { display: flex; align-items: center; gap: 7px; }
.folder-footer a { color: #466192; }
.folder-footer .icon { width: 13px; height: 13px; }
.contract-pane-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.contract-pane-heading h3 { font-size: 19px; font-weight: 700; letter-spacing: -.5px; color: #001774; }
.contract-pane-heading p { font-size: var(--type-small); color: var(--desk-muted); margin-top: 7px; }
.workspace-export { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; font-size: var(--type-small); color: #001774; background: #d7e3f8; border: 1px solid #b7c9e8; border-radius: 7px; }
.contract-record { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; gap: 12px; align-items: center; padding: 20px 0; border-bottom: 1px solid #c8d6ed; }
.record-icon { display: grid; place-items: center; width: 35px; height: 40px; border: 1px solid #b3c7e8; border-radius: 3px 11px 11px 11px; background: #d7e4f9; color: #001774; }
.record-icon .icon { width: 18px; height: 18px; }
.contract-record h4 { font-size: var(--type-small); color: #001774; font-weight: 650; line-height: 1.5; }
.contract-record p { color: #647ba3; font-size: var(--type-small); margin-top: 5px; line-height: 1.6; }
.record-amount { font-size: var(--type-body); font-weight: 650; color: #001774; white-space: nowrap; text-align: right; }
.record-amount small { display: block; margin-top: 6px; font-size: var(--type-small); font-weight: 400; color: #2b775a; }
.contract-record button { display: grid; place-items: center; background: #001774; color: #ffeb13; border: 0; border-radius: 8px; width: 34px; height: 34px; }
.contract-record button:hover { background: #3150ac; }
.contract-record button .icon { width: 16px; height: 16px; }
.contract-download-note { color: #7087ab; margin-top: 23px; font-size: var(--type-small); line-height: 1.7; }
.client-bottom-line { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid #b9c9e8; margin-top: 30px; padding-top: 18px; color: #56709e; font-size: var(--type-small); }
.client-bottom-line > div { display: flex; align-items: center; gap: 10px; }
.client-bottom-line p { line-height: 1.7; }
.client-bottom-line a { display: flex; gap: 10px; align-items: center; color: #001774; white-space: nowrap; }
.mobile-service-stations { display: none; }
.renewal-preview-row { padding: 10px 0; border-bottom: 1px solid #c8d5ee; font-size: var(--type-small); display: flex; flex-direction: column; gap: 5px; }
.renewal-preview-row small { color: #60789e; }
.renewal-preview-row strong { color: #001774; }
.forum-topic { display: block; padding: 16px 0; border-bottom: 1px solid #bdcdeb; }
.forum-topic h3 { font-size: var(--type-body); color: #001774; }
.forum-topic p { font-size: var(--type-small); color: #55709f; margin-top: 8px; line-height: 1.7; }
@media(min-width: 1450px) {
  .client-workspace-grid { grid-template-columns: minmax(320px,.78fr) minmax(0,1.65fr); gap: 40px; }
  .license-item { min-height: 64px; padding: 11px 15px; gap: 12px; }
  .license-name { font-size: var(--type-body); }
  .contract-heading { padding: 30px 30px 22px; }
  .contract-selector-row { padding: 0 30px 28px; }
  .contract-content { padding: 27px; }
  .service-cell-date { font-size: var(--type-body); }
  .service-cell-status,.provider-name { font-size: var(--type-small); }
  .subscription-matrix tbody td { padding: 24px 5px; }
}
@media(max-width: 1199px) and (min-width: 992px) {
  .client-workspace-grid { grid-template-columns: 255px minmax(0,1fr); gap: 20px; }
  .contract-heading { padding: 22px 19px 18px; }
  .contract-selector-row { padding: 0 19px 22px; gap: 8px; }
  .contract-content { padding: 17px; }
  .contract-tabs { padding: 0 8px; }
  .renew-all-button { font-size: var(--type-small); padding: 10px 12px; gap: 7px; }
  .contract-selector select { font-size: var(--type-small); }
  .service-cell-date { font-size: var(--type-small); }
  .service-cell-date small { display: none; }
  .provider-name { font-size: var(--type-small); }
  .station-renew-button { font-size: var(--type-small); padding: 8px 6px; }
  .station-renew-button .icon { display: none; }
  .expiry-notification { font-size: var(--type-small); }
}
@media(max-width: 991px) {
  .client-workspace-grid { grid-template-columns: minmax(235px,.75fr) minmax(0,1.4fr); gap: 24px; }
  .contract-content { padding: 18px; }
  .contract-heading { padding: 23px 21px 18px; }
  .contract-selector-row { padding: 0 21px 22px; }
  .license-item { padding-left: 9px; gap: 7px; grid-template-columns: 22px minmax(0,1fr) 22px; }
  .license-name { font-size: var(--type-small); }
  .service-cell-date { font-size: var(--type-small); }
  .service-cell-date small { display: none; }
  .contract-tabs { padding: 0 9px; }
  .contract-tabs button { font-size: var(--type-small); }
  .station-renew-button { padding: 8px 7px; font-size: var(--type-small); }
  .station-renew-button .icon { display: none; }
}
@media(max-width: 767px) {
  body[data-view="overview"] .page-heading { margin-bottom: 19px; align-items: start; }
  body[data-view="overview"] h1 { font-size: 29px; letter-spacing: -1px; }
  body[data-view="overview"] .page-heading p { font-size: var(--type-small); line-height: 1.6; }
  .client-utility-bar { flex-direction: column-reverse; align-items: stretch; gap: 18px; margin-bottom: 24px; padding-bottom: 18px; }
  .client-wallet { justify-content: space-between; border-radius: 11px; padding: 10px 12px 10px 16px; }
  .client-wallet a { justify-content: space-between; flex: 1; }
  .client-wallet a > strong { font-size: 19px; }
  .client-wallet a > span { font-size: var(--type-small); }
  .client-utility-links { justify-content: space-between; gap: 8px; }
  .client-utility-links a,.client-utility-links button { font-size: var(--type-small); gap: 6px; }
  .client-utility-links .icon { width: 14px; height: 14px; }
  .client-workspace-grid { grid-template-columns: minmax(0,1fr); gap: 30px; }
  .contract-folder { grid-row: 1; }
  .folder-ear { width: 231px; padding-left: 20px; padding-right: 20px; font-size: var(--type-small); }
  .contract-heading { padding: 24px 19px 20px; }
  .contract-heading h2 { font-size: 29px; }
  .workspace-kicker { font-size: var(--type-small); }
  .expiry-notification { font-size: var(--type-small); gap: 6px; }
  .expiry-notification > .icon { display: none; }
  .contract-selector-row { padding: 0 19px 22px; gap: 9px; }
  .contract-selector { padding: 10px 10px 7px; }
  .contract-selector select { font-size: var(--type-small); }
  .contract-selector label { font-size: var(--type-small); letter-spacing: .6px; }
  .renew-all-button { font-size: var(--type-small); padding: 10px; }
  .renew-all-button .icon { display: none; }
  .contract-tabs { padding: 0 8px; }
  .contract-tabs button { font-size: var(--type-small); padding: 19px 4px; }
  .contract-tabs button span { font-size: var(--type-small); margin-left: 3px; padding-left: 4px; padding-right: 4px; }
  .contract-content { padding: 19px; min-height: 370px; }
  .subscription-caption { margin-bottom: 18px; }
  .subscription-caption > span { font-size: var(--type-small); }
  .subscription-matrix table { display: none; }
  .mobile-service-stations { display: grid; gap: 13px; }
  .mobile-station-subscriptions { border: 1px solid #b4c7e8; border-radius: 12px; background: #eef4ff; overflow: hidden; }
  .mobile-station-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 14px; background: #d4e1f8; border-bottom: 1px solid #b9cce9; }
  .mobile-station-heading h3 { font-size: var(--type-body); letter-spacing: -.4px; color: #001774; font-weight: 700; }
  .mobile-station-heading small { display: block; color: #607ba9; font-size: var(--type-small); margin-top: 3px; }
  .mobile-station-heading .station-renew-button { font-size: var(--type-small); padding: 9px 11px; }
  .mobile-service-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; }
  .mobile-service-row + .mobile-service-row { border-top: 1px solid #d4e0f3; }
  .mobile-provider { display: flex; align-items: center; gap: 9px; }
  .mobile-provider .provider-monogram { margin: 0; width: 23px; height: 23px; line-height: 23px; font-size: var(--type-small); }
  .mobile-provider .provider-name { font-size: var(--type-small); }
  .mobile-service-date { text-align: right; line-height: 1; }
  .mobile-service-date .service-cell-status { font-size: var(--type-small); line-height: 1.4; }
  .mobile-service-date .service-cell-date { margin-top: 3px; font-size: var(--type-small); }
  .mobile-service-date .service-cell-date small { display: inline; font-size: var(--type-small); }
  .folder-footer { padding: 17px 19px; font-size: var(--type-small); gap: 8px; }
  .folder-footer a { gap: 4px; }
  .license-portfolio { padding-top: 0; }
  .portfolio-summary { padding-top: 18px; padding-bottom: 20px; }
  .portfolio-summary strong { font-size: 61px; }
  .portfolio-summary p { font-size: var(--type-small); }
  .portfolio-filters button { font-size: var(--type-small); padding: 9px 4px; }
  .license-item { min-height: 78px; padding: 14px; grid-template-columns: 25px minmax(0,1fr) 27px; gap: 10px; }
  .license-name { font-size: var(--type-body); }
  .license-state { font-size: var(--type-small); }
  .license-index { font-size: var(--type-small); }
  .license-arrow { width: 27px; height: 27px; }
  .portfolio-footer { font-size: var(--type-small); }
  .client-bottom-line { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 28px; }
  .client-bottom-line a { margin-left: 25px; }
  .contract-pane-heading h3 { font-size: 17px; }
  .contract-record { gap: 9px; grid-template-columns: 30px minmax(0,1fr) auto; }
  .record-icon { width: 30px; height: 35px; }
  .contract-record h4 { font-size: var(--type-small); }
  .record-amount { font-size: var(--type-small); }
}
@media(prefers-reduced-motion: reduce) { .license-item,.expiry-notification .form-check-input::after { transition: none; } }

/* Compact subscription register. Each service date is visible in its station row. */
.contract-heading { padding: 18px 22px 12px; }
.contract-heading h2 { font-size: 29px; margin-top: 5px; }
.contract-selector-row { padding: 0 22px 16px; gap: 10px; }
.contract-selector { padding: 7px 12px 5px; border-radius: 8px; }
.contract-selector label { font-size: var(--type-small); margin-bottom: 1px; }
.contract-selector select { font-size: var(--type-small); }
.renew-all-button { border-radius: 8px; padding: 10px 15px; }
.contract-tabs { padding: 0 14px; }
.contract-tabs button { padding: 14px 5px; font-size: var(--type-small); }
.contract-content { padding: 18px; min-height: 0; }
.folder-footer { padding: 13px 18px; }
.subscription-list-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-bottom: 13px; }
.subscription-station-search { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border: 1px solid #b2c6e6; border-radius: 7px; background: #f0f5ff; flex: 1; min-width: 130px; }
.subscription-station-search > .icon { width: 14px; height: 14px; color: #617daa; flex-shrink: 0; }
.subscription-station-search:focus-within { border-color: #001774; box-shadow: 0 0 0 2px #00177416; }
.subscription-station-search input { background: transparent; width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #001774; font-size: var(--type-small); }
.subscription-station-search input::placeholder { color: #6b83ab; }
.subscription-list-controls > select { border: 1px solid #b2c6e6; border-radius: 7px; padding: 9px 7px; background: #dce7fa; color: #405d92; font-size: var(--type-small); cursor: pointer; max-width: 165px; }
.subscription-bulk-actions { display: flex; align-items: center; gap: 4px; }
.subscription-bulk-actions[hidden] { display: none; }
.subscription-selected-renew { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #001774; padding: 9px 10px; border-radius: 7px; color: #001774; background: #ffeb13; font-size: var(--type-small); font-weight: 700; white-space: nowrap; }
#subscription-selected-count { padding-left: 7px; border-left: 1px solid #00177433; font-variant-numeric: tabular-nums; }
.subscription-selection-clear { display: grid; place-items: center; width: 28px; height: 32px; border: 0; background: none; color: #657da4; font-size: 19px; }
.subscription-caption { margin: 0 0 9px; gap: 6px; }
.subscription-caption strong { color: #516c9b; font-size: var(--type-small); font-weight: 550; }
.subscription-caption > span { font-size: var(--type-small); }
.subscription-caption > span.has-due { color: #a36b16; }
.subscription-table-wrap { overflow: hidden; border: 1px solid #b9cbea; border-radius: 9px; background: #eef4ff; }
.subscription-date-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.subscription-date-table th,.subscription-date-table td { padding: 7px 5px; vertical-align: middle; }
.subscription-date-table thead th { background: #d4e1f8; padding-top: 11px; padding-bottom: 11px; color: #536f9d; font-size: var(--type-small); font-weight: 600; }
.subscription-date-table .station-column { width: 27%; padding-left: 11px; text-align: left; }
.subscription-date-table .provider-column { text-align: center; }
.subscription-date-table .renew-column { width: 40px; padding-right: 9px; text-align: center; }
.subscription-date-table .station-column label { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.station-subscription-check { flex-shrink: 0; width: 14px; height: 14px; margin: 0; border: 1px solid #9fb5da; cursor: pointer; background-color: #eaf1fd; border-radius: 3px; }
.station-subscription-check:checked,.station-subscription-check:indeterminate { background-color: #001774; border-color: #001774; }
.station-subscription-row { border-top: 1px solid #d0ddef; }
.station-subscription-row:nth-child(even) { background: #e4edfc; }
.station-subscription-row:hover { background: #dce7fa; }
.station-subscription-row.is-selected { background: #d6e2f8; }
.station-subscription-row.is-selected > th { box-shadow: inset 3px 0 0 #ffeb13; }
.station-subscription-name { min-width: 0; }
.station-subscription-name > strong { display: block; color: #001774; font-size: var(--type-body); font-weight: 700; line-height: 1.4; }
.station-subscription-name > small { display: block; color: #7389ae; font-size: var(--type-small); margin-top: 2px; font-weight: 450; line-height: 1.4; }
.subscription-date-table .provider-monogram { display: inline-block; width: 19px; height: 19px; line-height: 19px; margin: 0 4px 0 0; border-radius: 5px; font-size: var(--type-small); vertical-align: middle; }
.subscription-date-table .provider-name { display: inline; font-size: var(--type-small); font-weight: 650; white-space: nowrap; overflow-wrap: normal; }
.mobile-provider-label { display: none; }
.subscription-expiry { display: inline-flex; flex-direction: column; align-items: center; gap: 1px; font-variant-numeric: tabular-nums; }
.expiry-date { font-size: var(--type-small); font-weight: 600; color: #294b86; line-height: 1.5; white-space: nowrap; }
.subscription-expiry.active .expiry-date::before { content: ''; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: #2d9372; margin-right: 5px; vertical-align: 2px; }
.expiry-state { font-size: var(--type-small); font-weight: 600; line-height: 1.4; }
.subscription-expiry.expired .expiry-date,.subscription-expiry.expired .expiry-state { color: #bb4038; }
.subscription-expiry.soon .expiry-date,.subscription-expiry.soon .expiry-state { color: #936313; }
.subscription-date-table .station-renew-button { display: inline-grid; place-items: center; width: 25px; height: 25px; padding: 0; border: 1px solid #adbfdf; border-radius: 6px; background: transparent; color: #001774; }
.subscription-date-table .station-renew-button .icon { display: block; width: 12px; height: 12px; color: inherit; }
.subscription-date-table .station-renew-button:hover { background: #001774; color: #ffeb13; border-color: #001774; }
.subscription-pagination { display: flex; align-items: center; gap: 8px; padding-top: 12px; flex-wrap: wrap; }
#subscription-page-caption { font-size: var(--type-small); color: #5c75a0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.subscription-page-size { margin-left: auto; }
.subscription-page-size select { border: 1px solid #b8cbea; border-radius: 5px; background: #dbe7fa; color: #405d91; padding: 5px; font-size: var(--type-small); width: 72px; }
#subscription-page-buttons { display: flex; gap: 3px; }
#subscription-page-buttons button { width: 25px; height: 26px; display: grid; place-items: center; padding: 0; background: transparent; border: 1px solid #c0d1ec; color: #627da8; border-radius: 5px; font-size: var(--type-small); }
#subscription-page-buttons button[aria-current="page"] { color: #ffeb13; background: #001774; border-color: #001774; }
#subscription-page-buttons button:disabled { opacity: .35; }
#subscription-page-buttons button .icon { width: 10px; height: 10px; }
.page-previous { transform: rotate(180deg); }
.contract-status-line { margin-top: 12px; font-size: var(--type-small); }
.subscription-legend-dot { width: 4px; height: 4px; border-radius: 50%; background: #2d9372; flex-shrink: 0; }
.subscription-date-table .subscription-list-empty { padding: 30px 10px; text-align: center; color: #617ba4; }
.subscription-list-empty > .icon { display: block; margin: 0 auto 10px; width: 23px; height: 23px; }
.subscription-list-empty strong { display: block; color: #001774; font-size: var(--type-body); }
.subscription-list-empty p { font-size: var(--type-small); margin-top: 8px; line-height: 1.7; }
.subscription-list-empty button { border: 0; border-bottom: 1px solid #6e87b5; margin-top: 10px; padding: 4px 0; background: none; font-size: var(--type-small); color: #001774; }
@media(max-width: 1199px) and (min-width: 768px) {
  .contract-heading { padding-left: 17px; padding-right: 17px; }
  .contract-selector-row { padding-left: 17px; padding-right: 17px; }
  .contract-content { padding: 13px; }
  .subscription-date-table .station-column { width: 24%; padding-left: 7px; }
  .subscription-date-table .station-column label { gap: 6px; }
  .subscription-date-table .renew-column { width: 36px; padding-right: 5px; }
  .subscription-date-table .provider-monogram { display: block; margin: 0 auto 3px; }
  .subscription-date-table .provider-name { font-size: var(--type-small); }
  .expiry-date { font-size: var(--type-small); }
  .station-subscription-name > strong { font-size: var(--type-small); }
  .station-subscription-name > small { font-size: var(--type-small); }
}
@media(max-width: 767px) {
  .contract-heading { padding: 18px 17px 12px; }
  .contract-selector-row { padding: 0 17px 16px; gap: 8px; }
  .contract-heading h2 { font-size: 27px; }
  .contract-content { padding: 14px; }
  .contract-tabs button { padding: 14px 3px; font-size: var(--type-small); }
  .subscription-list-controls > select { font-size: var(--type-small); max-width: 145px; }
  .subscription-station-search { min-width: 110px; }
  .subscription-station-search input { font-size: var(--type-small); }
  .subscription-caption strong,.subscription-caption > span { font-size: var(--type-small); }
  .subscription-date-table,.subscription-date-table thead,.subscription-date-table tbody { display: block; }
  .subscription-date-table thead tr { display: flex; background: #d4e1f8; }
  .subscription-date-table thead .station-column { width: 100%; padding: 10px 11px; }
  .subscription-date-table thead .station-column span::after { content: ' · выбрать на странице'; font-weight: 450; font-size: var(--type-small); color: #7389ae; }
  .subscription-date-table thead .provider-column,.subscription-date-table thead .renew-column { display: none; }
  .subscription-date-table .station-subscription-row { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); padding: 10px 10px 11px; gap: 8px 4px; }
  .subscription-date-table[data-provider-count="2"] .station-subscription-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .subscription-date-table .station-subscription-row .station-column { grid-column: 1 / -1; width: 100%; padding: 0 34px 0 0; box-shadow: none; }
  .station-subscription-row.is-selected { box-shadow: inset 3px 0 0 #ffeb13; }
  .subscription-date-table .station-subscription-row .station-column label { gap: 8px; }
  .station-subscription-name { display: flex; align-items: baseline; gap: 8px; }
  .station-subscription-name > strong { font-size: var(--type-small); }
  .station-subscription-name > small { font-size: var(--type-small); margin: 0; }
  .subscription-date-table .station-subscription-row .provider-column { padding: 0; text-align: left; }
  .mobile-provider-label { display: block; font-size: var(--type-small); line-height: 1.5; margin-bottom: 3px; color: #5e759e; white-space: nowrap; }
  .subscription-expiry { align-items: flex-start; flex-direction: column-reverse; }
  .expiry-date { font-size: var(--type-small); }
  .subscription-expiry.active .expiry-date::before { margin-right: 4px; }
  .subscription-date-table .station-subscription-row .renew-column { position: absolute; right: 10px; top: 8px; padding: 0; width: 25px; }
  .subscription-date-table .subscription-list-empty { display: block; }
  .subscription-pagination { gap: 8px; }
  #subscription-page-buttons button { width: 29px; height: 30px; font-size: var(--type-small); }
  .renewal-station-dates { font-size: var(--type-small); max-width: 126px; }
}

#service-renewal-preview { max-height: 310px; overflow-y: auto; border: 1px solid #b5c8e8; border-radius: 10px; }
.service-renewal-station + .service-renewal-station { border-top: 1px solid #c0d1eb; }
.service-renewal-station summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; cursor: pointer; background: #dce7f9; list-style: none; }
.service-renewal-station summary::-webkit-details-marker { display: none; }
.service-renewal-station summary > span:first-child { min-width: 0; }
.service-renewal-station summary strong { color: #001774; font-size: var(--type-small); }
.service-renewal-station summary small { display: block; color: #6680a9; font-size: var(--type-small); margin-top: 4px; }
.renewal-station-dates { color: #345791; font-size: var(--type-small); font-variant-numeric: tabular-nums; text-align: right; }
.service-renewal-station summary::after { content: '+'; color: #45669d; font-size: 17px; flex-shrink: 0; }
.service-renewal-station[open] summary::after { content: '−'; }
.service-renewal-station .renewal-preview-row { margin: 0 14px; font-size: var(--type-small); }
.service-renewal-station .renewal-preview-row:last-child { border: 0; }
.renewal-scope-note { font-size: var(--type-small); line-height: 1.7; color: #5e78a0; margin: 0 0 17px; }
