/* Production licence UX consolidation — scoped to UFSC licence components. */
.ufsc-licence-shortcuts{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:0 0 18px;padding:12px;border:1px solid #d8e3ef;border-radius:14px;background:#fff;box-shadow:0 8px 24px rgba(17,52,86,.06)}
.ufsc-licence-shortcut{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:9px 14px;border:1px solid #0b5f96;border-radius:999px;color:#0b4f7e;background:#fff;font-weight:700;line-height:1.2;text-align:center;text-decoration:none}
.ufsc-licence-shortcut:hover,.ufsc-licence-shortcut:focus-visible,.ufsc-licence-shortcut.is-active{color:#fff;background:#0b5f96;outline:none}.ufsc-licence-shortcut:focus-visible{box-shadow:0 0 0 3px rgba(11,95,150,.22)}

.ufsc-global-notice,.ufsc-global-message,.ufsc-message{box-sizing:border-box;width:100%;margin:0 0 16px;padding:14px 16px;border:1px solid transparent;border-radius:12px;font-size:15px;line-height:1.45}
.ufsc-global-notice{display:flex;gap:12px;align-items:flex-start;box-shadow:0 8px 24px rgba(17,52,86,.08)}.ufsc-global-notice__icon{display:inline-flex;flex:0 0 28px;width:28px;height:28px;align-items:center;justify-content:center;border-radius:50%;font-weight:800}
.ufsc-global-notice.is-success,.ufsc-message.ufsc-success,.ufsc-global-message[data-state="success"]{color:#14532d;border-color:#86d6a9;background:#ecfdf3}.ufsc-global-notice.is-success .ufsc-global-notice__icon{color:#fff;background:#16804b}
.ufsc-global-notice.is-pending,.ufsc-message.ufsc-warning,.ufsc-global-message[data-state="pending"]{color:#6b4800;border-color:#f2c45c;background:#fff8df}.ufsc-global-notice.is-pending .ufsc-global-notice__icon{color:#5e4300;background:#f4c84d}
.ufsc-global-notice.is-error,.ufsc-message.ufsc-error,.ufsc-global-message[data-state="error"]{color:#7f1d1d;border-color:#ef9a9a;background:#fff1f1}.ufsc-global-notice.is-error .ufsc-global-notice__icon{color:#fff;background:#c92a2a}
.ufsc-global-notice.is-info,.ufsc-message.ufsc-info,.ufsc-global-message[data-state="info"]{color:#123d61;border-color:#9fc7e5;background:#eef7fd}.ufsc-global-notice.is-info .ufsc-global-notice__icon{color:#fff;background:#256c9e}

/* Keep the whole licence workspace inside the portal column. */
.ufsc-licences-section,.ufsc-licences-workspace,.ufsc-current-licences,.ufsc-licences-archives,.ufsc-renewal-wizard{box-sizing:border-box;width:100%;max-width:100%;min-width:0}

/* Canonical licence/renewal presentation: cards at every viewport. No horizontal scroll. */
.ufsc-front-table-scroll{box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0!important;overflow-x:hidden!important;overflow-y:visible!important}
.ufsc-licence-table,.ufsc-renewal-table,.ufsc-licence-table tbody,.ufsc-renewal-table tbody{display:block!important;box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0!important;border:0;border-collapse:separate}
.ufsc-licence-table{table-layout:fixed!important}
.ufsc-licence-table thead,.ufsc-renewal-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
.ufsc-licence-table tbody tr,.ufsc-renewal-table tbody tr.ufsc-renewal-source-row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0!important;margin:0 0 14px;padding:8px 14px;border:1px solid #d8e3ef;border-radius:14px;background:#fff;box-shadow:0 5px 16px rgba(17,52,86,.05)}
.ufsc-licence-table tbody td,.ufsc-renewal-table tbody tr.ufsc-renewal-source-row>td{display:grid;grid-template-columns:minmax(88px,32%) minmax(0,1fr);gap:8px;align-items:start;box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0!important;padding:10px 12px;border:0;border-bottom:1px solid #edf2f7;white-space:normal!important;overflow-wrap:anywhere;word-break:normal;text-align:left;vertical-align:top}
.ufsc-licence-table tbody td::before,.ufsc-renewal-table tbody tr.ufsc-renewal-source-row>td::before{content:attr(data-label);min-width:0;color:#29475e;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.02em}
.ufsc-licence-table tbody td:last-child,.ufsc-renewal-table tbody tr.ufsc-renewal-source-row>td:last-child{border-bottom:0}
.ufsc-licence-table td .ufsc-action,.ufsc-renewal-table td .ufsc-action,.ufsc-renewal-table td .ufsc-btn,.ufsc-licence-table td .ufsc-btn{display:inline-flex;box-sizing:border-box;max-width:100%!important;min-width:0!important;min-height:36px;white-space:normal!important;overflow-wrap:anywhere;align-items:center;justify-content:center;margin:2px 4px 2px 0}
.ufsc-licence-table--current td[data-label="Actions"]{align-content:start}

/* Filters and pagination must also wrap instead of forcing the portal wider. */
.ufsc-current-licence-filters,.ufsc-renewal-filters,.ufsc-filter-actions,.ufsc-renewal-page-size,.ufsc-renewal-list-tools,.ufsc-pagination,.ufsc-renewal-pagination,.ufsc-pagination-wrapper{box-sizing:border-box;max-width:100%;min-width:0}
.ufsc-current-licence-filters,.ufsc-renewal-filters{display:flex;flex-wrap:wrap;gap:10px;align-items:end}
.ufsc-current-licence-filters label,.ufsc-renewal-filters label{min-width:0;max-width:100%}
.ufsc-current-licence-filters input,.ufsc-current-licence-filters select,.ufsc-renewal-filters input,.ufsc-renewal-filters select{box-sizing:border-box;max-width:100%;min-width:0}
.ufsc-pagination,.ufsc-renewal-pagination,.ufsc-pagination-wrapper{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:16px}
.ufsc-pagination .ufsc-btn,.ufsc-renewal-pagination .ufsc-btn,.ufsc-pagination-wrapper .ufsc-page-link{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:40px;min-height:38px;max-width:100%;padding:7px 11px;border:1px solid #0b5f96;border-radius:10px;background:#fff;color:#0b4f7e;font-weight:700;line-height:1.2;text-decoration:none;white-space:normal}
.ufsc-pagination-wrapper .ufsc-page-link:hover,.ufsc-pagination-wrapper .ufsc-page-link:focus-visible,.ufsc-pagination-wrapper .ufsc-page-link.current{background:#0b5f96;color:#fff;outline:none}
.ufsc-pagination-wrapper .ufsc-page-link.disabled{border-color:#cbd5df;background:#f5f7f9;color:#7b8792;cursor:not-allowed}
.ufsc-results-count,.ufsc-archive-results{margin:12px 0;color:#29475e;font-weight:600}

/* Expanded renewal profile fallback: keep legacy rows usable before JS promotion. */
.ufsc-renewal-table tbody tr.ufsc-renewal-profile-row{display:block!important;box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0!important;margin:-6px 0 18px;border:1px solid #d8e3ef;border-radius:14px;background:#fff;overflow:hidden}
.ufsc-renewal-table tbody tr.ufsc-renewal-profile-row>td,.ufsc-renewal-profile-row>td{display:block!important;box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0!important;padding:14px!important;border:0!important}

/* JS promotes visible verification rows outside the table. This is the stable form layout. */
.ufsc-renewal-profile-panel{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin:0 0 18px;padding:18px;border:1px solid #cfe0ed;border-radius:16px;background:#f8fcff;box-shadow:0 6px 18px rgba(17,52,86,.05)}
.ufsc-renewal-profile-panel>.ufsc-renewal-profile,.ufsc-renewal-profile,.ufsc-sensitive-identity{display:block;box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0!important}
.ufsc-renewal-profile-panel fieldset,.ufsc-renewal-profile fieldset{box-sizing:border-box;width:100%!important;max-width:100%!important;min-width:0!important;margin:16px 0;padding:16px}
.ufsc-renewal-profile-panel .ufsc-renewal-profile-grid,.ufsc-renewal-profile-grid{display:grid!important;grid-template-columns:repeat(2,minmax(220px,1fr))!important;gap:14px 18px;width:100%!important;max-width:100%!important;min-width:0!important}
.ufsc-renewal-profile-grid>label,.ufsc-sensitive-identity label{display:flex;flex-direction:column;gap:6px;min-width:0;max-width:100%}
.ufsc-renewal-profile input,.ufsc-renewal-profile select,.ufsc-renewal-profile textarea,.ufsc-sensitive-identity input,.ufsc-sensitive-identity select,.ufsc-sensitive-identity textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0}
.ufsc-sensitive-identity{margin-top:16px;padding:14px;border:1px solid #efb1a4;border-radius:12px;background:#fffaf8}

.ufsc-renewal-actions,.ufsc-dashboard-actions,.ufsc-form-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.ufsc-renewal-actions .ufsc-btn,.ufsc-dashboard-actions .ufsc-btn,.ufsc-form-actions .ufsc-btn{max-width:100%;white-space:normal}

body.wp-admin .wrap .notice{border-radius:10px;padding-top:7px;padding-bottom:7px;box-shadow:0 5px 18px rgba(17,52,86,.06)}body.wp-admin .wrap .notice-success{border-left-color:#16804b;background:#f1fcf5}body.wp-admin .wrap .notice-warning{border-left-color:#e0a800;background:#fff9e8}body.wp-admin .wrap .notice-error{border-left-color:#c92a2a;background:#fff3f3}body.wp-admin .wrap .notice-info{border-left-color:#256c9e;background:#f0f8fd}

@media (max-width:980px){.ufsc-licence-table tbody tr,.ufsc-renewal-table tbody tr.ufsc-renewal-source-row{grid-template-columns:repeat(2,minmax(0,1fr))}.ufsc-licence-shortcut{flex:1 1 calc(50% - 8px)}.ufsc-renewal-profile-panel .ufsc-renewal-profile-grid,.ufsc-renewal-profile-grid{grid-template-columns:1fr!important}}
@media (max-width: 760px){.ufsc-licence-shortcuts{padding:10px;gap:8px}.ufsc-licence-shortcut{flex:1 1 100%;width:100%}.ufsc-global-notice,.ufsc-global-message,.ufsc-message{padding:13px 14px;font-size:14px}.ufsc-licence-table tbody tr,.ufsc-renewal-table tbody tr.ufsc-renewal-source-row{display:block!important;padding:8px 12px}.ufsc-licence-table tbody td,.ufsc-renewal-table tbody tr.ufsc-renewal-source-row>td{grid-template-columns:minmax(100px,38%) minmax(0,1fr);padding:9px 0}.ufsc-current-licence-filters,.ufsc-renewal-filters{display:grid;grid-template-columns:1fr}.ufsc-current-licence-filters label,.ufsc-renewal-filters label,.ufsc-current-licence-filters input,.ufsc-current-licence-filters select,.ufsc-renewal-filters input,.ufsc-renewal-filters select{width:100%;max-width:none}.ufsc-renewal-profile-panel{padding:12px}.ufsc-renewal-profile-grid{grid-template-columns:1fr!important}.ufsc-renewal-actions,.ufsc-dashboard-actions,.ufsc-form-actions{flex-direction:column;align-items:stretch}.ufsc-renewal-actions .ufsc-btn,.ufsc-dashboard-actions .ufsc-btn,.ufsc-form-actions .ufsc-btn{width:100%;max-width:none;justify-content:center}.ufsc-pagination,.ufsc-renewal-pagination,.ufsc-pagination-wrapper{align-items:stretch}.ufsc-pagination .ufsc-btn,.ufsc-renewal-pagination .ufsc-btn,.ufsc-pagination-wrapper .ufsc-page-link{flex:1 1 auto}}
