@font-face {
    font-family: 'Tedra Poppins';
    src: url('../../../themes/tedra-osgb/assets/fonts/poppins-regular.woff2') format('woff2');
    font-display: swap;
    font-weight: 400;
}

@font-face {
    font-family: 'Tedra Poppins';
    src: url('../../../themes/tedra-osgb/assets/fonts/poppins-semibold.woff2') format('woff2');
    font-display: swap;
    font-weight: 600;
}

@font-face {
    font-family: 'Tedra Poppins';
    src: url('../../../themes/tedra-osgb/assets/fonts/poppins-bold.woff2') format('woff2');
    font-display: swap;
    font-weight: 700;
}

:where(.tp-page, .tp-admin, .tp-admin-login) {
    --tp-navy: #092853;
    --tp-blue: #06517c;
    --tp-accent: #007b9f;
    --tp-turquoise: #49d5ec;
    --tp-ink: #102c4b;
    --tp-muted: #526982;
    --tp-line: #e0e9f3;
    --tp-soft: #eef7fc;
    --tp-white: #fff;
    --tp-shadow: 0 12px 40px rgba(11, 43, 82, .075);
    --tp-font: 'Tedra Poppins', system-ui, -apple-system, sans-serif;
    color: var(--tp-ink);
    font-family: var(--tp-font);
}

.tp-page, .tp-page *, .tp-admin *, .tp-admin-login * { box-sizing: border-box; }
.tp-page {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: radial-gradient(ellipse at 82% 6%, #eaf6fc, transparent 47%), #f5f8fd;
    font-size: 14px;
    line-height: 1.65;
}
.tp-page a, .tp-admin a { text-decoration: none; }
.tp-page button, .tp-page input, .tp-admin button, .tp-admin input { font: inherit; }
.tp-page :focus-visible, .tp-admin :focus-visible, .tp-admin-login :focus-visible {
    outline: 3px solid #0085ab;
    outline-offset: 3px;
}
.tp-page h1, .tp-page h2, .tp-page h3, .tp-admin h1, .tp-admin h2, .tp-admin h3 {
    margin: 0;
    color: var(--tp-ink);
    font-weight: 700;
    line-height: 1.28;
    overflow-wrap: anywhere;
}
.tp-page p, .tp-admin p { color: var(--tp-muted); }
.tp-shell { width: min(1180px, calc(100% - 56px)); margin-inline: auto; }
.tp-icon { flex: 0 0 auto; width: 19px; height: 19px; vertical-align: middle; }
.tp-skip { position: absolute; z-index: 10; top: 6px; left: 12px; padding: 10px 16px; color: var(--tp-navy); background: #fff; transform: translateY(-170%); }
.tp-skip:focus { transform: translateY(0); }
.tp-masthead { background: #fff; border-bottom: 1px solid var(--tp-line); }
.tp-masthead-inner { display: flex; align-items: center; justify-content: space-between; min-height: 85px; gap: 20px; }
.tp-brand-group { display: flex; align-items: center; gap: 23px; min-width: 0; }
.tp-brand { display: flex; align-items: center; color: var(--tp-navy); }
.tp-brand img { width: 178px; height: auto; display: block; }
.tp-brand-label { border-left: 1px solid var(--tp-line); padding-left: 23px; color: var(--tp-muted); font-size: 13px; font-weight: 600; }
.tp-site-back { display: inline-flex; align-items: center; gap: 9px; color: var(--tp-navy); font-size: 13px; font-weight: 600; }
.tp-site-back:hover, .tp-footer a:hover { color: var(--tp-accent); }
.tp-footer { background: #fff; border-top: 1px solid var(--tp-line); margin-top: auto; }
.tp-footer-inner { min-height: 65px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-block: 15px; color: var(--tp-muted); font-size: 12px; }
.tp-footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; }
.tp-footer a { display: inline-flex; align-items: center; gap: 6px; color: var(--tp-navy); font-weight: 600; }
.tp-footer .tp-icon { width: 14px; height: 14px; }

.tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: 600 13px/1.45 var(--tp-font);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .18s, border-color .18s, box-shadow .18s;
}
.tp-page button.tp-btn, .tp-admin button.tp-btn { font: 600 13px/1.45 var(--tp-font); }
.tp-btn-primary { color: #fff; background: linear-gradient(110deg, #073166, #00678b); box-shadow: 0 6px 13px rgba(13, 69, 108, .15); }
.tp-btn-primary:hover, .tp-btn-primary:focus { color: #fff; background: #083a6b; }
.tp-btn-outline { border-color: #dce8f3; color: var(--tp-navy); background: #fff; }
.tp-btn-outline:hover { color: var(--tp-blue); background: #f0f8fc; border-color: #c2ddea; }
.tp-btn-white { color: var(--tp-navy); background: #fff; }
.tp-btn-white:hover { color: var(--tp-navy); background: #e6f8ff; }
.tp-btn-download { background: #eaf6fc; color: #075471; }
.tp-btn-download:hover { background: #d6edf8; }
.tp-btn-danger { background: #fff5f4; color: #a42d27; border-color: #f1d8d5; }
.tp-btn-danger:hover { background: #fde8e6; color: #8c241f; }
.tp-square-icon { width: 44px; height: 44px; flex: 0 0 auto; display: inline-grid; place-items: center; background: #edf7fd; color: #075f83; border: 1px solid #dbeef8; border-radius: 13px; }
.tp-square-icon .tp-icon { width: 23px; height: 23px; }

.tp-blue-panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: radial-gradient(ellipse at 88% 92%, #08719a, transparent 58%), linear-gradient(133deg, #09234d 10%, #0a4670 100%);
    color: #fff;
}
.tp-blue-panel::before {
    position: absolute;
    z-index: -1;
    content: '';
    width: 450px;
    height: 450px;
    right: -195px;
    bottom: -278px;
    border-radius: 50%;
    border: 1px solid rgba(127, 226, 255, .23);
    box-shadow: 0 0 0 33px rgba(118, 209, 241, .075), 0 0 0 70px rgba(130, 214, 239, .05), 0 0 0 114px rgba(130, 214, 239, .035);
    pointer-events: none;
}
.tp-blue-panel h1, .tp-blue-panel h2, .tp-admin .tp-blue-panel h1 { color: #fff; }
.tp-blue-panel p, .tp-admin .tp-blue-panel p { color: #e0edf7; }
.tp-eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #e1faff; font-weight: 600; font-size: 10px; letter-spacing: .14em; line-height: 1.5; }
.tp-eyebrow > span { display: inline-block; flex: 0 0 7px; height: 7px; border-radius: 50%; background: #63e8ff; box-shadow: 0 0 0 4px rgba(99, 232, 255, .14); }

.tp-login-main { flex: 1 0 auto; padding-block: clamp(30px, 7vh, 76px); display: flex; align-items: center; }
.tp-login-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); width: min(1050px, 100%); margin: auto; overflow: hidden; border-radius: 25px; background: #fff; box-shadow: 0 22px 70px rgba(16, 49, 86, .13); }
.tp-login-intro { min-height: 537px; padding: 49px 46px; }
.tp-login-intro h2 { font-size: clamp(34px, 4vw, 51px); letter-spacing: -.038em; margin-top: 23px; }
.tp-login-intro p { font-size: 13px; max-width: 330px; margin: 15px 0 0; line-height: 1.82; }
.tp-intro-foot { display: flex; align-items: center; gap: 9px; color: #dcf5fe; font-size: 12px; position: absolute; bottom: 34px; left: 46px; }
.tp-intro-foot .tp-icon { color: #8ee3fa; width: 15px; height: 15px; }
.tp-doc-art { position: absolute; width: 244px; height: 180px; bottom: 71px; right: 24px; }
.tp-doc-orbit { position: absolute; inset: 23px 16px; border: 1px solid rgba(156, 232, 255, .3); border-radius: 50%; transform: rotate(-18deg); }
.tp-doc-sheet { width: 127px; height: 146px; position: absolute; top: 12px; left: 56px; border: 1px solid rgba(175, 235, 255, .42); background: linear-gradient(155deg, rgba(190, 243, 255, .2), rgba(85, 185, 225, .06)); box-shadow: 0 17px 45px rgba(2, 21, 51, .32); border-radius: 18px; transform: rotate(-11deg); padding: 21px 20px; }
.tp-doc-sheet > .tp-icon { width: 41px; height: 41px; color: #b8edff; margin-bottom: 8px; }
.tp-doc-sheet i { display: block; margin-top: 8px; height: 4px; width: 100%; border-radius: 6px; background: rgba(190, 233, 249, .41); }
.tp-doc-sheet i:last-child { width: 57%; }
.tp-doc-shield { position: absolute; right: 18px; bottom: 20px; display: grid; place-items: center; width: 71px; height: 71px; border-radius: 20px; background: linear-gradient(140deg, #b3f5ff, #5dd1ed); color: #0a4d72; box-shadow: 0 14px 38px rgba(2, 22, 46, .28); transform: rotate(10deg); }
.tp-doc-shield .tp-icon { width: 35px; height: 35px; }
.tp-login-card { padding: 48px 49px; align-self: center; }
.tp-login-card h1 { font-size: clamp(27px, 3.4vw, 35px); letter-spacing: -.025em; margin-top: 16px; }
.tp-login-card > p { margin: 10px 0 23px; font-size: 13px; }
.tp-login-form { display: grid; gap: 8px; }
.tp-login-form label, .tp-admin-fields label { color: var(--tp-ink); font-size: 13px; font-weight: 600; }
.tp-input-icon { display: flex; align-items: center; position: relative; margin-bottom: 10px; }
.tp-input-icon > .tp-icon { position: absolute; left: 16px; color: #607f9d; pointer-events: none; }
.tp-input-icon input, .tp-admin input[type='text'], .tp-admin input[type='file'] {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    padding: 12px 13px;
    border: 1px solid #d9e5f2;
    border-radius: 10px;
    background: #f8fbfe;
    color: var(--tp-ink);
    font-size: 14px;
    box-shadow: none;
}
.tp-input-icon input { min-height: 54px; padding-left: 47px; }
.tp-input-icon input::placeholder, .tp-admin input::placeholder { color: #627992; opacity: 1; }
.tp-login-form .tp-btn { min-height: 53px; margin-top: 3px; justify-content: space-between; padding-inline: 20px; }
.tp-alert { margin: 0 0 17px; padding: 12px 15px; border: 1px solid; border-radius: 10px; display: flex; align-items: center; gap: 9px; font-size: 13px; }
.tp-alert-error, .tp-admin p.tp-alert-error { background: #fff3f2; border-color: #f1cbc6; color: #932a25; }
.tp-alert-success { background: #effbf6; border-color: #cbeadc; color: #146042; }

.tp-dashboard { padding-block: 40px 70px; }
.tp-welcome { display: flex; align-items: center; justify-content: space-between; gap: 25px; min-height: 224px; padding: 35px 38px; border-radius: 22px; box-shadow: var(--tp-shadow); }
.tp-welcome-text { min-width: 0; }
.tp-welcome h1 { font-size: clamp(28px, 3.5vw, 46px); margin-top: 13px; letter-spacing: -.028em; }
.tp-welcome p { margin: 12px 0 0; font-size: 14px; }
.tp-welcome-emblem { display: grid; place-items: center; flex: 0 0 120px; height: 120px; border: 1px solid rgba(187, 239, 255, .26); border-radius: 29px; margin-right: 23px; transform: rotate(9deg); color: #c9f5ff; background: linear-gradient(140deg, rgba(194, 244, 255, .21), rgba(179, 231, 255, .07)); box-shadow: 0 15px 35px rgba(2, 21, 44, .15); }
.tp-welcome-emblem .tp-icon { width: 63px; height: 63px; transform: rotate(-9deg); }
.tp-dashboard-grid { display: grid; grid-template-columns: minmax(247px, .84fr) minmax(0, 2.16fr); gap: 20px; align-items: start; margin-top: 21px; }
.tp-card { border: 1px solid var(--tp-line); border-radius: 17px; background: #fff; min-width: 0; box-shadow: var(--tp-shadow); }
.tp-profile, .tp-reports { padding: 23px; }
.tp-card-title { display: flex; align-items: center; gap: 12px; margin-bottom: 21px; }
.tp-card-title h2 { font-size: 19px; letter-spacing: -.02em; }
.tp-card-title .tp-count { margin-left: auto; }
.tp-profile dl { margin: 0; }
.tp-profile dl > div { padding: 15px 0; border-top: 1px solid #edf1f7; }
.tp-profile dl > div:last-child { padding-bottom: 2px; }
.tp-profile dt { color: var(--tp-muted); font-size: 12px; margin-bottom: 4px; }
.tp-profile dd { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.tp-profile dd.tp-code { font-size: 20px; }
.tp-code { font-variant-numeric: tabular-nums; letter-spacing: .045em; }
.tp-count { flex: 0 0 auto; border-radius: 999px; padding: 5px 10px; background: #ebf6fc; color: #085a7c; font-size: 11px; font-weight: 600; }
.tp-report-columns, .tp-report-row { display: grid; grid-template-columns: minmax(105px, .75fr) minmax(0, 1.6fr) auto; align-items: center; gap: 12px; }
.tp-report-columns { padding: 10px 13px; border-radius: 8px; background: #f5f9fd; font-weight: 600; font-size: 11px; color: #526d88; }
.tp-report-columns > span:last-child { min-width: 125px; text-align: right; }
.tp-report-list { margin: 0; padding: 0; list-style: none; }
.tp-report-row { padding: 15px 12px; border-bottom: 1px solid #edf2f8; }
.tp-report-row:last-child { border-bottom: 0; padding-bottom: 1px; }
.tp-download-status { margin: 0; }
.tp-download-status:not(:empty) { margin-top: 14px; padding: 10px 12px; border: 1px solid #dbeef8; border-radius: 8px; background: #f3f9fd; color: #075471; font-size: 12px; }
.tp-report-date { display: flex; align-items: center; gap: 7px; color: var(--tp-muted); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tp-report-date .tp-icon { width: 16px; height: 16px; }
.tp-report-name { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tp-report-name strong { display: block; line-height: 1.5; font-size: 13px; overflow-wrap: anywhere; }
.tp-file-icon { display: inline-grid; flex: 0 0 36px; height: 39px; place-items: center; border-radius: 9px; color: #096a8d; background: #eaf7fc; }
.tp-report-name small { display: block; color: var(--tp-muted); font-size: 11px; margin-top: 4px; }
.tp-empty { text-align: center; padding: 28px 15px; color: var(--tp-muted); }
.tp-empty > .tp-icon { width: 29px; height: 29px; color: #3381a1; margin-bottom: 10px; }
.tp-empty h3 { font-size: 15px; }
.tp-empty p { font-size: 13px; margin: 7px 0 0; }
.tp-error-page { padding-block: 50px; }
.tp-error-page .tp-card { max-width: 580px; margin: auto; padding: 32px; }
.tp-error-page h1 { margin: 15px 0 8px; font-size: 27px; }

.tp-admin { max-width: 1360px; margin-top: 24px; font-size: 13px; }
.tp-admin-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 166px; border-radius: 18px; padding: 26px 28px; margin-bottom: 18px; }
.tp-admin .tp-admin-banner h1 { font-size: clamp(25px, 3vw, 37px); padding: 0; margin-top: 9px; letter-spacing: -.025em; }
.tp-admin-banner p { margin: 8px 0 0; font-size: 13px; }
.tp-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.tp-stat { display: flex; gap: 14px; padding: 19px 20px; align-items: center; }
.tp-stat div > span { display: block; font-weight: 600; font-size: 12px; color: var(--tp-muted); }
.tp-stat strong { display: block; color: var(--tp-navy); font-size: 30px; line-height: 1.25; margin-top: 5px; font-variant-numeric: tabular-nums; }
.tp-admin-list, .tp-admin-editor { padding: 23px; margin-bottom: 16px; }
.tp-admin-list-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 13px; margin-bottom: 17px; }
.tp-admin-list-top h2 { font-size: 20px; }
.tp-admin-list-top p { margin: 6px 0 0; font-size: 12px; }
.tp-admin-search { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.tp-admin-search input[type='text'] { min-height: 44px; width: 193px; }
.tp-table-scroll { overflow-x: auto; border: 1px solid #edf2f8; border-radius: 11px; }
.tp-table { width: 100%; min-width: 570px; text-align: left; border-collapse: collapse; }
.tp-table th, .tp-table td { padding: 13px 14px; border-bottom: 1px solid #edf2f8; vertical-align: middle; }
.tp-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #506a86; background: #f5f9fd; }
.tp-table tbody th { color: var(--tp-ink); font-size: 13px; font-weight: 600; }
.tp-table tbody tr:last-child > * { border-bottom: 0; }
.tp-table tbody tr:hover { background: #fcfeff; }
.tp-table .tp-btn { min-height: 36px; padding: 7px 11px; font-size: 12px; }
.tp-table .tp-icon { width: 15px; height: 15px; }
.tp-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 14px; color: var(--tp-muted); }
.tp-admin-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.tp-admin-fields label { min-width: 0; display: grid; gap: 7px; }
.tp-admin-fields small { color: var(--tp-muted); font-size: 11px; font-weight: 400; }
.tp-field-actions { display: flex; gap: 8px; flex-wrap: wrap; grid-column: 1 / -1; }
.tp-admin-row-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.tp-report-size { display: block; margin-top: 3px; color: var(--tp-muted); font-weight: 400; }
.tp-admin-empty { padding: 12px 14px; border-radius: 9px; background: #f5f9fd; }
.tp-report-form-box { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--tp-line); }
.tp-report-form-box h3 { margin-bottom: 14px; font-size: 16px; }
.tp-admin input[type='file'] { padding: 8px 10px; line-height: 30px; font-weight: 400; font-size: 12px; }
.tp-admin input[type='file']::file-selector-button { border: 1px solid #d6e7f3; border-radius: 6px; background: #fff; color: var(--tp-navy); padding: 5px 8px; margin-right: 8px; cursor: pointer; }
.tp-delete-customer { margin: 6px 0 25px; }
.tp-admin-login { background: radial-gradient(ellipse at top right, #d8f1fb, transparent 58%), #f4f8fd; }
.tp-admin-login #login { width: min(410px, calc(100% - 38px)); padding-top: 5vh; }
.tp-admin-login #login h1 a { width: 182px; height: 60px; margin-bottom: 19px; background: url('../../../themes/tedra-osgb/assets/brand/tedra-horizontal-gold.svg') center / contain no-repeat; }
.tp-admin-login-intro { text-align: center; margin-bottom: 16px; }
.tp-admin-login-intro span { color: var(--tp-accent); font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.tp-admin-login-intro h2 { font-size: 28px; font-weight: 700; color: var(--tp-navy); margin: 4px 0 7px; }
.tp-admin-login-intro p { color: var(--tp-muted); font-size: 12px; line-height: 1.7; }
.tp-admin-login #loginform { border-radius: 15px; border-color: var(--tp-line); box-shadow: var(--tp-shadow); }
.tp-admin-login #wp-submit { background: #0a416c; border-color: #0a416c; }

@media (max-width: 990px) {
    .tp-admin-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tp-file-field { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
    .tp-login-card { padding: 36px 33px; }
    .tp-login-intro { padding: 39px 33px; min-height: 485px; }
    .tp-intro-foot { left: 33px; }
    .tp-dashboard-grid { grid-template-columns: 1fr; }
    .tp-profile dl { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; }
    .tp-profile dl > div:last-child { padding-bottom: 15px; }
}
@media (max-width: 650px) {
    .tp-shell { width: calc(100% - 30px); }
    .tp-masthead-inner { min-height: 70px; gap: 10px; }
    .tp-brand img { width: 145px; }
    .tp-brand-label { display: none; }
    .tp-site-back { font-size: 12px; }
    .tp-login-main { padding-block: 22px 30px; }
    .tp-login-layout { grid-template-columns: 1fr; border-radius: 18px; }
    .tp-login-intro { min-height: 0; padding: 24px; }
    .tp-login-intro h2 { margin-top: 13px; font-size: 29px; }
    .tp-login-intro p { margin: 10px 0 0; font-size: 12px; max-width: 265px; }
    .tp-doc-art, .tp-intro-foot { display: none; }
    .tp-login-card { padding: 24px; }
    .tp-login-card h1 { margin-top: 12px; font-size: 27px; }
    .tp-login-card > p { margin-bottom: 17px; }
    .tp-input-icon input { font-size: 16px; }
    .tp-input-icon input::placeholder { font-size: 13px; }
    .tp-dashboard { padding-block: 23px 35px; }
    .tp-welcome { min-height: 0; padding: 26px 22px; border-radius: 18px; }
    .tp-welcome h1 { font-size: clamp(25px, 7vw, 35px); }
    .tp-welcome p { font-size: 12px; }
    .tp-welcome-emblem { display: none; }
    .tp-dashboard-grid { gap: 14px; margin-top: 14px; }
    .tp-profile, .tp-reports { padding: 17px; }
    .tp-card-title { margin-bottom: 15px; }
    .tp-profile dl { grid-template-columns: 1fr; gap: 0; }
    .tp-profile dl > div:last-child { padding-bottom: 2px; }
    .tp-report-columns { display: none; }
    .tp-report-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 'name date' 'download download'; padding: 13px 0; gap: 10px; border-top: 1px solid #edf2f8; border-bottom: 0; }
    .tp-report-name { grid-area: name; }
    .tp-report-date { grid-area: date; font-size: 11px; }
    .tp-report-date .tp-icon { display: none; }
    .tp-report-row .tp-btn-download { grid-area: download; }
    .tp-admin-banner { flex-wrap: wrap; padding: 20px; }
    .tp-stat-grid { grid-template-columns: 1fr; gap: 9px; }
    .tp-stat { padding: 13px; }
    .tp-admin-list, .tp-admin-editor { padding: 15px; }
    .tp-admin-fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .tp-btn { transition: none; }
}
