

* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 120px;
}
body {
    margin: 0;
    background: #fff;
    color: var(--text);
    line-height: 1.5;
    font-family: 'Open Sans', sans-serif;
    
}

a {
    color: var(--link-color);
}

a:hover {
    color: var(--link-hover-color);
}

h1,
h2,
h3 {
    color: var(--heading-color);
}
h2 {
    margin: 20px auto 0px;
}
hr {
    opacity: .2;
}
.muted {
    color: var(--muted);
}

.small {
    font-size: 0.85em;
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ---- Custom Select Dropdown Arrow ---- */
select:not([multiple]) {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.42 8.46'%3E%3Cpath d='M.91,0h10.59c.76,0,1.19.88.71,1.48l-5.3,6.64c-.37.46-1.06.46-1.43,0L.2,1.48c-.48-.6-.05-1.48.71-1.48Z' fill='%23222222'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px 8px;
    padding-right: 34px;
    cursor: pointer;
}

select::-ms-expand {
    display: none;
}

/* ---- Public ---- */
.public-topbar {
    background: #fff;
    color: var(--header-text);
    padding: 0;
    display: flex;
    gap: 0;
}
.public-topbar .nav-logo,
.public-topbar .nav-search {
    width: 50%;
}
.nav-search {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    margin: auto;
    align-items: center;
}
.nav-search > * {
    width: 50%;
}
.nav-search > p {
    font-weight: bold;
    line-height: 1.2;
    font-size: 14px;
}
.public-topbar .brand {
    text-decoration: none;
    display: flex;
    align-items: center;
}
.public-topbar .nav-logo > div {
    float: right;
    width: 100%;
    max-width: 720px;
    padding: 15px;
    display: flex;
}
.public-topbar .nav-logo > div a {
    padding: 0 20px 0 0;
    border-right: 1px solid #222;
    margin-right: 20px;
}
.public-topbar .nav-logo > div .tagline {
        width: 100%;
    max-width: 200px;
    font-size: 14px;
    line-height: 1.2;
}
.nav-search > div p {
    width: 100%;
        max-width: 290px;
    font-size: 14px;
    line-height: 1.2;
    padding: 0 10px 0 0;
    margin: 0;
    color: #fff;
    flex: 0 0 290px;
}
.nav-search .search-form {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0;
}

.nav-search .search-form input[type="text"] {
    width: 100%;
    max-width: 400px;
    border-radius: 100px;
    position: relative;
    z-index: 1;
    border: 2px solid var(--primary_color);
    height: 40px;
}
.nav-search .search-form button {
    width: 36px;
    height: 36px;
    border-radius: 100px;
    overflow: hidden;
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    min-width: auto;
    z-index: 10;
    padding: 0;
    background: var(--primary_light_color);
}
.nav-search .search-form button img {
    width: 20px;
    height: 20px;
}

.public-topbar .nav-search > div {
    background: var(--primary_color);
    display: flex;
    justify-content: start;
    padding: 5px 30px;
    display: flex;
    align-items: center;
        max-width: 720px;
        width: 100%;
}
.brand-logo {
    height: 36px;
    width: auto;
}

.public-topbar .tagline {
    color: var(--muted);
    font-size: 0.9rem;
}

.notice-strip {
    background: var(--secondary_color);
    color: #fff;
    padding: 0.6rem 2rem;
    font-size: 12px;
    text-align: center;
}
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 0 30px rgba(0,0,0,.4);
}
.fixed-header-spacer {
    position: relative;
    display: block;
    width: 100%;
    height: 104px;
}

.public-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 180px);
}

.public-footer {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem;
    color: #fff;
    font-size: 0.85rem;
    background: var(--black_color);
}
.public-footer p {
    color: #fff;
}
.public-footer a {
    color: var(--tertiary_color);
}
.public-footer > div {
    width: 100%;
    max-width: 1440px;
    margin: auto;
    display: flex;
    gap: 30px;
    align-items: end;
}
.footer-logo-wrap {
    flex: 0 0 300px;
    text-align: center;
    padding: 0 40px;
}
.footer-logo-wrap hr {
    margin: 20px 0 20px;
    opacity: .2;
}
.brand-footer-logo {
/* max-height: 40px; */
    width: 100%;
    display: inline-block;
}
.footer-link-wrap {
    flex: 1;
	margin-bottom: 2.25rem;
}
.footer-links a {
    margin-right: 1.5rem;
}

.eifu-symbol {
    height: 1.2em;
    vertical-align: middle;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.search-form input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.product-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    display: flex;
    gap: 3%;
    row-gap: 35px;
    flex-wrap: wrap;
    justify-content: center;
}
.product-list li {
    width: 31%;
    max-width: 360px;
    min-width: 270px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
    padding: 20px 24px;
    border-radius: 16px;
    margin-bottom: 0.6rem;
    box-shadow: 0 0 0px rgba(0,0,0,0.4);
    transition: all .4s linear;
}
.product-list li:hover {
    background: var(--panel-bg);
    box-shadow: 0 0 20px rgba(0,0,0,0.4);
}
.product-list .product-title {
    color: #1c2530;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px;
    text-align: center;
    display: block;
    line-height: 1.3;
}
.product-list .product-model {
    color: var(--text, #1c2530);
    font-size: 15px;
    line-height: 1.5;
    background: var(--primary_light_color, #f2ebfc);
    border-radius: 0px;
    padding: 18px 24px;
    width: 100%;
    margin: 0 0 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    box-sizing: border-box;
    text-align: center;
}
.product-list .product-model .product-model-line {
    display: block;
}
.product-list .product-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}
.product-list .btn-product-action {
    width: 100%;
    border-radius: 100px;
    padding: 11px 20px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    line-height: 1.4;
}
.product-list .btn-product-action .btn-action-icon {
    height: 16px;
    width: auto;
    max-width: 18px;
    flex-shrink: 0;
    display: inline-block;
}
.product-list .btn-product-view {
    background: var(--button-color, #813be4);
    color: var(--button-text-color, #ffffff) !important;
    border: 1.5px solid var(--button-color, #813be4);
}
.product-list .btn-product-view:hover {
    background: var(--button-hover-color, #080b62);
    border-color: var(--button-hover-color, #080b62);
    color: var(--button-text-color, #ffffff) !important;
}
.product-list .btn-product-view .btn-action-icon {
    filter: brightness(0) invert(1);
}
.product-list .btn-product-print {
    background: #ffffff;
    color: var(--button-color, #813be4) !important;
    border: 1.5px solid var(--button-color, #813be4);
}
.product-list .btn-product-print:hover {
    background: var(--button-color, #813be4);
    border-color: var(--button-color, #813be4);
    color: #ffffff !important;
}
.product-list .btn-product-print .btn-action-icon {
    filter: invert(28%) sepia(85%) saturate(3071%) hue-rotate(256deg) brightness(94%) contrast(96%);
    transition: filter 0.2s ease-in-out;
}
.product-list .btn-product-print:hover .btn-action-icon {
    filter: brightness(0) invert(1);
}
.product-list .product-print-subtext {
    font-size: 12px;
    color: var(--muted, #666666);
    margin: 4px 0 0;
    text-align: center;
    line-height: 1.3;
}
/* ---- Admin ---- */
body.admin {
    background: var(--bg);
}
.topbar-wrapper {
    background: var(--admin-header-bg);
    position: relative;
}
.admin-topbar {
    background: var(--admin-header-bg);
    color: var(--admin-header-text);
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1440px;
    margin: auto;
    justify-content: space-between;
}
.admin-nav-wrap {
    display: flex;
    align-items: center;
}
.admin-nav-inner {
    display: flex;
    align-items: center;
}
span.acct-name {
    text-transform: uppercase;
    text-align: right;
    display: block;
    margin: 0;
    line-height: 1;
    font-weight: 600;
    font-size: 16px;
}
span.acct-role {
    text-transform: capitalize;
    text-align: right;
    display: block;
    margin: 0;
    font-size: 14px;
    line-height: 1;
    font-weight: 400;
}
.signout-icon path {
    fill: #fff;
}
.signout-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.admin-nav-wrap nav {
    padding-right: 30px;
    margin-right: 30px;
    border-right: 1px solid rgba(255, 255, 255, .4);
    padding-top: 10px;
    padding-bottom: 10px;
}

.admin-menu-toggle {
        display: none;
    background: transparent;
    border: 0px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    align-items: center;
    gap: 0px;
    min-width: 50px;
    height: 50px;
}
.admin-menu-toggle:hover {
    background: transparent;
}

.admin-menu-toggle .hamburger {
    width: 18px;
    height: 2px;
    background: #fff;
    display: block;
    margin: 3px 0;
}
.open .admin-menu-toggle .hamburger:nth-of-type(2) {
    opacity: 0;
}
.open .admin-menu-toggle .hamburger:nth-of-type(3) {
    transform-origin: center;
    transform: rotate(-45deg) translate(3px, -5px);
}
.open .admin-menu-toggle .hamburger:nth-of-type(1) {
    transform-origin: center;
    transform: rotate(45deg) translate(6px, 8px);
}
.admin-topbar .brand a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.admin-topbar .brand-logo {
    height: 30px;
    width: auto;
    display: block;
    /* filter: brightness(0) invert(1); */
}

.admin-topbar .admin-badge {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
}

.admin-topbar nav {
    display: flex;
    gap: 1.2rem;
    flex: 1;
}

.admin-topbar nav a {
    color: #cfe3ee;
    text-decoration: none;
    font-size: 0.92rem;
}
.admin-topbar nav a.active {
    color: #fff;
    font-weight: bold;
}
.admin-topbar nav a:hover {
    color: #fff;
}

.admin-topbar .account {
    color: #cfe3ee;
    font-size: 0.85rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.admin-topbar .account a {
    color: #fff;
}

.admin-content {
    max-width: 1440px;
    margin: 0 auto;
    padding: 1.5rem;
}

.admin-footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    text-align: center;
    font-size: 14px;
}

.admin-footer .admin-version {
    margin-left: auto;
    white-space: nowrap;
}

/* ---- Shared components ---- */
.panel {
    background: var(--panel-bg);
    padding: .4rem 0rem;
}
.product-columns {
    display: flex;
    gap: 50px;
    justify-content: space-between;
}
.product-columns .left {
    width: 64%;
    flex: 0 0 64%;
}
.product-columns .right {
    width: 36%;
    flex: 0 0 36%;
    background: #222;
    color: #fff;
    padding: 40px;
    margin: -40px -40px -40px 0;
    display: flex;
    flex-direction: column;
}
.product-columns .right h2 {
    color: #fff;
    margin: 0 0 20px;
}

.back-to-documents {
    margin-top: auto;
    padding-top: 40px;
}

.back-to-documents a {
    color: #fff !important;
    text-decoration: underline;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
}

.back-to-documents a:hover,
.back-to-documents a:focus {
    color: #e0e0e0 !important;
    outline: none;
}

.product-columns .left h2 {
    margin: 0 0 20px;
}
form.product-form .field-group-half {
    width: calc(50% - 10px);
}

form.product-form .field-group-fourth {
    width: calc(25% - 15px);
}

form.product-form .field-group-third {
    width: calc(33% - 10px);
}
form.product-form .field-group-two-third {
    width: calc(66% - 10px);
}
form.product-form {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
}
form.product-form .field-group-full {
    margin: 0;
}
.product-form select {
    width: 100%;
    padding: 0.55rem 34px 0.55rem 14px;
    border: 1px solid var(--primary);
    border-radius: 20px;
    font-size: 0.95rem;
    background-color: white;
    transition: border-color 0.2s ease;
    height: 40px;
}
.product-form select:not([multiple]) {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.42 8.46'%3E%3Cpath d='M.91,0h10.59c.76,0,1.19.88.71,1.48l-5.3,6.64c-.37.46-1.06.46-1.43,0L.2,1.48c-.48-.6-.05-1.48.71-1.48Z' fill='%23222222'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px 8px;
    cursor: pointer;
}
.product-form .floating-label-group select.lg,
.product-form .floating-label-group textarea.lg {
    height: 100px;
    border-radius: 10px;
}

/* ---- Custom Pill File Upload ---- */
.mobile-br {
    display: none;
}

.file-input-pill {
    display: flex;
    align-items: stretch;
    width: 100%;
    height: 40px;
    border: 2px solid var(--primary_color);
    border-radius: 100px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
    margin: 0;
}

.file-input-prefix {
    padding: 0 16px;
    color: #9ca3af;
    font-size: 0.95rem;
    white-space: nowrap;
    border-right: 1px solid #222;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
}

.file-input-btn {
    font-weight: 700;
    color: #222;
    font-size: 0.95rem;
    white-space: nowrap;
    padding-left: 16px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
    user-select: none;
}

.file-input-name {
    color: #9ca3af;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    padding-right: 16px;
    display: flex;
    align-items: center;
}

.file-input-name.has-file {
    color: #222;
}

.file-input-pill input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.alert {
    padding: 0.7rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.alert-success {
    background: #e6f4ea;
    color: var(--success);
    border: 1px solid #b7dfc2;
}

.alert-error {
    background: #fbe9e7;
    color: var(--danger);
    border: 1px solid #f2c1bc;
}

.alert-info {
    background: #eaf3f8;
    color: var(--primary-dark);
    border: 1px solid #cfe3ee;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-grid .full-width,
.form-grid label.full-width,
.form-grid div.full-width {
    grid-column: 1 / -1;
}

.form-grid div.full-width {
    margin-top: 0.5rem;
}

.form-grid label.checkbox {
    flex-direction: row;
    align-items: center;
    font-weight: 400;
    gap: 0.5rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea,
.inline-form input,
.inline-form select {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.95rem;
}

.form-grid select:not([multiple]),
.inline-form select:not([multiple]) {
    padding-right: 32px;
}

.inline-form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.6rem;
}
/* Paired responsive input rows (markets, identifiers) */
.inline-form.add-market-form,
.identifier-inputs-row {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
}
.inline-form.add-market-form .floating-label-group,
.identifier-inputs-row .floating-label-group {
    flex: 1 1 50%;
    min-width: 0;
}
.inline-form button,
.print-request-form button {
    text-transform: uppercase;
}
.add-identifier-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.6rem;
    width: 100%;
}
.print-request-form,
.print-request-inputs {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}
.print-request-form select {
    font-size: 11px !important;
    font-weight: 600;
}
.print-request-form input {
    font-size: 12px !important;
}

/* User management active dropdown and reset password */
.active-dropdown {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.42 8.46'%3E%3Cpath d='M.91,0h10.59c.76,0,1.19.88.71,1.48l-5.3,6.64c-.37.46-1.06.46-1.43,0L.2,1.48c-.48-.6-.05-1.48.71-1.48Z' fill='%23222222'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 9px center;
    background-size: 10px 7px;
    border: 1px solid #444;
    border-radius: 100px;
    padding: 3px 26px 3px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #222;
    cursor: pointer;
    min-width: 62px;
    line-height: 1.4;
}
.active-dropdown:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background-color: #f7f7f7;
}
.reset-pass-link {
    color: var(--link-color, #824cdf);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.reset-pass-link:hover {
    text-decoration: underline;
}
.rp-arrow {
    font-size: 9px;
    color: var(--link-color, #824cdf);
}
.reset-password-card {
    background: #efefef;
    border-radius: 20px;
    padding: 20px 24px;
    margin: 6px 0;
}
.reset-pass-form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}
.reset-pass-inputs {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 500px;
}

button,
.btn-primary {
    background: var(--button-color);
    color: var(--button-text-color);
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 100px;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-block;
    min-width: 100px;
}

button:hover,
.btn-primary:hover,
.data-table a.btn-primary:hover,
a.btn-primary:hover,
a.btn-primary:focus,
.data-table a.btn-primary:focus {
    background: var(--button-hover-color);
    color: var(--button-text-color) !important;
}

.btn-danger {
    background: var(--danger);
}

.btn-link-danger {
    background: none;
    border: none;
    color: var(--primary_color);
    text-decoration: none;
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
}

.btn-link-danger:hover {
    text-decoration: underline;
}
.download-btn {
    background: var(--button-color);
    color: var(--button-text-color);
    position: relative;
    width: 28px;
    height: 28px;
    padding: 4px;
    border-radius: 50%;
    display: inline-block;
}
.download-btn .download-icon {
    width: 14px;
    height: 14px;

}
table.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 0.8rem;
}

table.data-table th,
table.data-table td {
    text-align: left;
    padding: 10px 15px;
    font-size: 0.9rem;
}
table.data-table th,
table.data-table tbody td {
    text-align: center;
}
table.data-table:not(.admin) tbody td:nth-of-type(1) {
    font-weight: bold;
    text-align: left;
}
table.data-table:not(.admin) tbody td.release-note {
    font-weight: normal;
}
table.data-table.admin tbody td:nth-of-type(1) {
    text-align: left;
}
table.data-table thead th:nth-of-type(1) {
    text-align: left;
}
table.data-table th {
    color: #ababab;
    font-weight: 400;
    font-size: 12px;
}
table.data-table.admin th {
    color: #fff;
    font-size: 14px;
    background: #222;
}
table.data-table:not(.w-notes):not(.admin) tbody tr:nth-of-type(2n + 1) {
    background: var(--primary_light_color);
}
table.data-table.admin:not(.w-notes) tbody tr {
    background: #fff;
}
table.data-table.admin:not(.w-notes) tbody tr:nth-of-type(2n) {
    background: #efefef;
}
table.data-table.w-notes tbody tr:nth-of-type(4n + 2),
table.data-table.w-notes tbody tr:nth-of-type(4n + 1) {
    background: var(--primary_light_color);
}
table.data-table.w-notes.admin tbody tr:nth-of-type(4n + 2),
table.data-table.w-notes.admin tbody tr:nth-of-type(4n + 1) {
    background: #efefef;
}

table.data-table tbody .btn-primary {
    background: var(--button-color);
    color: var(--button-text-color);
    border: none;
    padding: 3px 20px;
    border-radius: 100px;
    cursor: pointer;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    min-width: 100px;
}
.version-history a {
    font-size: 12px;
}

table.data-table.admin.print-requests-table tbody tr,
table.data-table.admin.print-requests-table tbody tr.row-danger,
table.data-table.admin.print-requests-table tbody tr:nth-of-type(2n) {
    background: #F8F1E8 !important;
    border-bottom: 1px solid #e8e0d5;
}

table.kv-table th {
    text-align: left;
    color: var(--muted);
    padding: 0.35rem 1rem 0.35rem 0;
    vertical-align: top;
}

table.kv-table td {
    padding: 0.35rem 0;
}
table.data-table.legal th,
table.data-table.legal td {
    vertical-align: top;
    text-align: left;
}
.product-wrapper {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 50px;
    justify-content: space-between;
}
.product-wrapper .product-left {
    flex: 1;
}
.product-wrapper .product-right {
    flex: 0 0 300px;
}
.side-panel {
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    padding: 0;
    overflow: hidden;
}
.side-panel .side-top {
    background: #222;
    padding: 30px;
    color: #fff;
}
.side-panel .side-bottom {
    background: #fff;
    padding: 30px;
    color: #222;
}
.side-panel .side-top h2 {
    color: #fff;
    font-size: 18px;
    margin: 0 0 10px;
}
.side-panel .side-bottom h2 {
    color: #222;
    font-size: 18px;
    margin: 0 0 10px;
}
.side-panel .side-top p {
    color: #fff;
    font-size: 14px;
    line-height: 1.2;
}
.side-panel .side-bottom p {
    color: #222;
    font-size: 14px;
    line-height: 1.2;
}
.side-panel .side-top .cta-wrap {
    text-align: center;
}
.side-panel .side-top .cta-wrap .btn-primary {
    background: var(--tertiary_color);
    color: #222;
    font-weight: 600;
}
.input-wrapper .icon-wrapper {
    width: 36px;
    height: 36px;
    padding: 5px;
    border-radius: 100%;
    background: var(--primary_light_color);
    position: absolute;
    top: 2px;
    right: 2px;
    z-index: 10;
}
.input-wrapper .icon-wrapper svg{
    width: 26px;
    height: 26px;
    padding: 0px;
}
.input-wrapper input {
    width: 100%;
    height: 40px;
    border-radius: 100px;
    border: 2px solid var(--primary_color);
    padding: 0 15px;
}
.input-wrapper {
    position: relative;
    margin-bottom: 15px;
    width: 100%;
}
.filter-panel {
    margin: 1.5rem 0; 
    padding: 0; 
    background: #fff; 
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    border-radius: 100px; 
    display: flex; 
    gap: 0; 
    align-items: center; 
    flex-wrap: wrap;
    overflow: hidden;
        justify-content: space-between;
}
.filter-panel .filter-panel-title {
    background: #222;
    color: #fff;
    margin: 0;
    padding: 1rem 1.2rem;
    min-width: 16%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.filter-panel .filter-panel-title a {
    color: var(--tertiary_color);
    font-size: 0.85rem; 
    text-decoration: underline; 
    margin-left: auto;
}
.filter-panel .filter-panel-title a span {
    text-decoration: none;
    color: #222;
    border-radius: 100%;
    width: 12px;
    height: 12px;
    background: var(--tertiary_color);
    font-size: 10px;
    display: inline-block;
    vertical-align: middle;
    text-align: center;
    line-height: 12px;
    margin-right: 5px;
}
.filter-panel-inputs select {
    width: 100%;
    border: 2px solid var(--primary_color);
    border-radius: 100px;
    padding: 5px 34px 5px 14px;
    min-height: 40px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.42 8.46'%3E%3Cpath d='M.91,0h10.59c.76,0,1.19.88.71,1.48l-5.3,6.64c-.37.46-1.06.46-1.43,0L.2,1.48c-.48-.6-.05-1.48.71-1.48Z' fill='%23222222'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 11px 8px;
    cursor: pointer;
}
.filter-panel-inputs {
    flex: 0 0 41%;
    padding:  0 15px;
}
.back-link a, a.back-link {
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
    opacity: 1;
}
.small-text {
    font-size: 14px;
}
.request-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 15px;
    row-gap: 22px;
    width: 100%;
    max-width: 710px;
    margin: 0 auto;
}
.request-form .field-group-full {
    grid-column: 1 / -1;
    width: auto;
    margin: 0;
}
.request-form .field-group-third {
    width: auto;
    min-width: 0;
    margin: 0;
}
.request-form .floating-label-group {
    min-width: 0;
    width: 100%;
}
.request-form .floating-label-group input,
.request-form .floating-label-group select {
    min-height: 38px;
}
.request-form .floating-label-group textarea {
    min-height: 84px;
}
.field-group-full {
    width: 100%;
    margin: 0 0 20px;
}
.field-group-third {
    width: 32.333%;
}
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 20px;
    font-size: 0.75rem;
    background: #e0e7ec;
    margin-left: 10px;
}

.status-published {
    background: #d9f0df;
    color: #084018;
}

.status-pending_approval {
    background: #fdedd3;
    color: #5c3a00;
}

.status-draft {
    background: #e0e7ec;
    color: var(--text);
}

.status-rejected {
    background: #fbe0dd;
    color: #7a100a;
}

.status-archived {
    background: #e5e5e5;
    color: #1f2937;
}

/* Ensure table rows retain high-contrast readable dark text across all cells */
tr.status-published,
tr.status-pending_approval,
tr.status-draft,
tr.status-rejected,
tr.status-archived {
    color: var(--text);
}

tr.row-danger {
    background: #fdefee;
}

tr.row-warn {
    background: #fef8ec;
}

.stat-grid {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    margin-left: -40px;
    margin-top: -40px;
    margin-right: -40px;
}

.stat-card {
    background: var(--panel-bg);
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
    border-radius: 0px;
    padding: 1rem;
    display: flex;
    flex-direction: row;
    gap: 15px;
    flex: 0 20%;
    justify-content: start;
    align-items: center;
}
.stat-card:last-child {
    border-right: none;
}
.stat-card .stat-num {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    background: var(--primary_color);
    width: 50px;
    height: 50px;
    text-align: center;
    display: block;
    border-radius: 100px;
    flex: 0 0 50px;
    line-height: 50px;
}

.stat-card.stat-warn .stat-num {
    background: #efbb00;
}

.stat-card.stat-danger .stat-num {
    background: #9b0013;
}

.tabs {
    margin: 1rem 0;
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
}

.tabs a {
    padding: 0.5rem 0.2rem;
    text-decoration: none;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.03em;
}

.tabs a.active {
    color: var(--primary-dark);
    border-color: var(--primary);
    font-weight: 600;
}

.pagination {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 1rem;
    justify-content: center;
}
nav.pagination .prev,
nav.pagination .next {
    display: flex;
    gap: 5px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--primary_color);
    font-size: 12px;
    opacity: 1;
}
nav.pagination .prev .prev-icon {
    width: 10px;
    transform-origin: center;
    transform: rotate(90deg);
}
nav.pagination .prev .prev-icon path {
    fill: var(--primary_color);
}
nav.pagination .next .next-icon {
    width: 10px;
    transform-origin: center;
    transform: rotate(-90deg);
}
nav.pagination .next .next-icon path {
    fill: var(--primary_color);
}
/* ---- Auth page ---- */
body.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem 1rem;
    box-sizing: border-box;
    background: var(--auth-bg, linear-gradient(0deg, rgba(129, 59, 228, 1) 0%, rgba(255, 255, 255, 1) 60%));
}

.auth-box {
    background: var(--panel-bg);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 2rem;
    width: 100%;
    max-width: 680px;
    box-sizing: border-box;
    box-shadow: 0 0 50px 0 rgba(0, 0, 0, 0.4);
}
.auth-box h1 {
    text-align: center;
    font-size: 18px;
    color: #080b62;
    background-color: #e6e7ef;
    margin: 0 -2rem 40px;
}
.single-model-title {
    text-align: center;
    color: var(--primary_color);
    font-size: 36px;
    margin: 0 auto 10px;
    line-height: 1;
}
.single-model-title span {
    font-size: 16px;
    vertical-align: middle;
    color: #222;
    font-weight: 400;
    
}
.auth-box form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin: 1rem 0;
}
.auth-box .mfa-start-over {
    margin-top: 1.5rem;
    align-items: center;
}
.auth-box .mfa-start-over button,
.auth-box .mfa-start-over button:hover {
    background: none;
    color: var(--primary) !important;
    padding: 0;
    min-width: 0;
    border-radius: 0;
    font-size: .85rem;
    text-decoration: underline;
}
.login-fields {
    display: flex;
    gap: 20px;
}
.auth-box label {
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}
.submit-wrap {
    text-align: center;
}
.auth-box input {
    padding: 0.55rem;
    border: 1px solid var(--primary);
    border-radius: 100px;
}
.sm-text {
    font-size: 14px;
    text-align: center;
    color: #9f9f9f;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
}
/* ---- Floating Labels ---- */
.floating-label-group {
    position: relative;
    flex: 1;
}

.floating-label-group input,
.floating-label-group textarea,
.floating-label-group select {
    width: 100%;
    padding: 0.55rem;
    border: 1px solid var(--primary);
    border-radius: 100px;
    font-size: 0.95rem;
    background-color: white;
    transition: border-color 0.2s ease;
}

.floating-label-group select:not([multiple]) {
    padding: 0.55rem 36px 0.55rem 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.42 8.46'%3E%3Cpath d='M.91,0h10.59c.76,0,1.19.88.71,1.48l-5.3,6.64c-.37.46-1.06.46-1.43,0L.2,1.48c-.48-.6-.05-1.48.71-1.48Z' fill='%23222222'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 11px 8px;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.floating-label-group textarea {
    border-radius: 8px;
    min-height: 80px;
    resize: vertical;
    padding-top: 1.1rem;
}

.floating-label-group input:focus,
.floating-label-group textarea:focus,
.floating-label-group select:focus {
    outline: none;
    border-color: var(--primary-dark);
}

.floating-label-group label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.2s ease;
    background: white;
    padding: 0 8px;
    border-radius: 30px;
    white-space: nowrap;
}

.floating-label-group textarea ~ label,
.floating-label-group label.full-width {
    left: 14px;
    top: 1.1rem;
}

/* Float label when input is focused or has content (not showing placeholder) */
.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label,
.floating-label-group input.has-value + label,
.floating-label-group textarea:focus + label,
.floating-label-group textarea:not(:placeholder-shown) + label,
.floating-label-group textarea.has-value + label,
.floating-label-group select:focus + label,
.floating-label-group select:valid + label,
.floating-label-group select.has-value + label,
.floating-label-group textarea:focus + label.full-width,
.floating-label-group textarea:not(:placeholder-shown) + label.full-width,
.floating-label-group textarea.has-value + label.full-width,
.floating-label-group textarea[placeholder]:not([placeholder=" "]) + label,
.floating-label-group textarea[placeholder]:not([placeholder=" "]) + label.full-width {
    top: 0;
    left: 10px;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--primary-dark);
    font-weight: 600;
}

.floating-label-group textarea::placeholder {
    color: #9ca3af;
    opacity: 0.85;
    line-height: 1.4;
}



/* ---- Mobile Notice Toggle ---- */
.notice-toggle {
    display: none;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
}

.notice-toggle-text {
    font-weight: 600;
}

.notice-toggle-icon {
    width: 12px;
    height: 8px;
    transition: transform 0.3s ease;
}

.notice-toggle-icon.rotated {
    transform: rotate(180deg);
}

.notice-content {
    display: block;
}

/* ---- Mobile Search Hint ---- */
.search-hint {
    display: block;
}

/* ---- Language Switcher ---- */
.lang-switcher-wrapper {
    display: flex;
    height: auto;
    width: 50%;
    background: var(--primary_color);
    padding: 7px 20px;
    color: var(--admin-header-text);
    font-size: 14px;
}
.lang-switcher-wrapper > div {
    text-align: right;
    max-width: 720px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    gap: 20px;
}
.lang-switcher select {
    padding: 0.5rem 36px 0.5rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: 100px;
    background-color: white;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12.42 8.46'%3E%3Cpath d='M.91,0h10.59c.76,0,1.19.88.71,1.48l-5.3,6.64c-.37.46-1.06.46-1.43,0L.2,1.48c-.48-.6-.05-1.48.71-1.48Z' fill='%23222222'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 11px 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    font-size: 0.9rem;
    cursor: pointer;
    min-width: 240px;
    height: 40px;
}

.lang-switcher select:hover {
    border-color: var(--primary);
}

.lang-switcher select:focus {
    outline: none;
    border-color: var(--primary);
}

.eifu-symbol rect,
.eifu-symbol line {
    stroke: #fff;
}
.eifu-symbol circle {
    fill: #fff;
}
.eifu-symbol text {
    fill: #222;
}

.vh-two-column .vh-right {
    flex: 0 0 30%;
}
.vh-two-column .vh-left {
    flex: 1;
}
.vh-two-column {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 50px;
}
.vh-two-column .vh-right .filter-panel {
    margin: 1.5rem 0;
    padding: 0;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    display: flex;
    gap: 0;
    align-items: center;
    flex-direction: row;
    overflow: hidden;
    flex-wrap: wrap;
    justify-content: space-between;
}
.vh-two-column .vh-right .filter-panel .filter-panel-title {
    flex: 0 0 100%;
    padding: 30px;
    font-size: 24px;
}
.vh-two-column .vh-right .filter-panel .filter-panel-inputs {
    flex: 0 0 100%;
    padding: 0 30px;
    margin: 20px auto 10px;
}
.vh-two-column .vh-right .filter-panel .filter-panel-inputs:nth-last-of-type(1) {
    padding-bottom: 30px;
}
.vh-two-column .vh-right .filter-panel .filter-panel-inputs:nth-last-of-type(3) {
    padding-top: 20px;
}

.content-wrapper {
    padding: 40px;
    box-shadow: 0 0 30px rgba(0,0,0,.3);
    background: #fff;
    border-radius: 30px;
        overflow: hidden;
}
h2.admin-header span {
    font-size: 16px;
    font-weight: 400;
}
h2.admin-header {
    color: #222;
    font-size: 24px;
}

/* ========================================================================
   System Status Toggle (Admin Topbar) 
   ======================================================================== */
.system-status-toggle {
    display: inline-flex;
    align-items: center;
    margin: 0;
}
.status-toggle-btn,
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    text-decoration: none;
    line-height: 1.2;
}
.status-toggle-btn:hover {
    filter: brightness(0.92);
    transform: translateY(-1px);
}
.status-badge {
    cursor: default;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
}
.status-online {
    background: #e6f9ee;
    color: #1a7a3a;
}
.status-online .status-dot {
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}
.status-offline {
    background: #fde8e8;
    color: #b91c1c;
}
.status-offline .status-dot {
    background: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}
.two-column section {
    width: 50%;
    flex: 1 1 50%;
}
.two-column {
    display: flex;
    justify-content: space-between;
    gap: 50px;
}

section.bttm-link a:hover {
    opacity: .5;
}
section.bttm-link a {
    color: #fff;
}
section.bttm-link {
    background: #222;
    padding: 10px;
    margin: 20px -40px -40px;
    text-align: center;
}
section.product-changer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
section.dark-panel {
    padding: 30px;
    background: #222;
    color: #fff;
    margin: 20px -40px;
}
section.dark-panel h2,
section.dark-panel h3 {
    color: #fff;
}
.flex-panel {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
}
details {
    cursor: pointer;
}
table.kv-table td, table.kv-table th {
    padding: 5px 10px;
    border: 0;
    font-size: 16px;
}
table.kv-table tr:nth-of-type(2n + 1):not(:nth-of-type(1)) {
    background: #efefef;
}

table.kv-table {
    border: 0;
    border-spacing: 0;
    width: 100%;
}
.title-flex h2, .title-flex p {
    margin: 0;
}
.title-flex {
    display: flex;
    align-items: center;
    justify-content: start;
    gap: 10px;
}
a.btn-clear {
    color: #fff;
    opacity: .6;
    text-decoration: underline;
}
a.btn-clear:hover {
    color: #fff;
    opacity: .6;
    text-decoration: underline;
}
a.btn-clear span {
    text-decoration: none;
    display: inline-block;
    margin-right: 4px;
    background: #fff;
    width: 10px;
    height: 10px;
    color: #222;
    line-height: 10px;
    font-size: 10px;
    text-align: center;
    border-radius: 50%;
    vertical-align: middle;
}

svg.view-icon path,
svg.manage-icon path {
    fill: var(--primary_color);
}

svg.view-icon {
    width: 24px;
    vertical-align: middle;
    margin-right: 4px;
}
svg.manage-icon {
    width: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

/* ==========================================================================
   MEDIA QUERIES
   All media queries grouped by breakpoint, largest to smallest:
   1280px -> 1200px -> 1024px -> 980px -> 768px -> 767px -> 680px -> 480px
   ========================================================================== */

/* --------------------------------------------------
   Max-width: 1280px
   -------------------------------------------------- */
@media (max-width: 1280px) {
    .filter-panel .filter-panel-title {
        min-width: 25%;
    }
    .filter-panel-inputs {
        flex: 0 0 25%;
    }
}

/* --------------------------------------------------
   Max-width: 1200px (admin topbar collapses to hamburger menu)
   -------------------------------------------------- */
@media (max-width: 1200px) {
    .admin-topbar {
        flex-wrap: nowrap;
        padding: 0.8rem 1rem;
        gap: 0.8rem;
        flex-direction: row;
        justify-content: space-between;
    }
    .admin-nav-wrap {
        width: auto;
        justify-content: space-between;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    .admin-menu-toggle {
        display: inline-flex;
        flex-direction: column;
    }
    .admin-nav-inner {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        background: var(--admin-header-bg);
        padding: 30px 20px;
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: 1000;
        transform: translateY(100%);
        text-align: center;
    }
    .admin-nav-wrap.open .admin-nav-inner {
        display: flex;
        background: #222;
    }
    .admin-topbar nav {
        flex-direction: column;
        gap: 0.8rem;
        width: 100%;
    }
    .admin-nav-wrap nav {
        padding-right: 0;
        margin-right: 0;
        border-right: none;
        padding-top: 0;
        padding-bottom: 0;
        width: 100%;
    }
    .admin-topbar .account {
        width: 100%;
        justify-content: center;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.3);
        flex-wrap: wrap;
    }
    .system-status-toggle {
        flex: 0 0 100%;
        margin: 10px 0;
        justify-content: center;
    }
    .admin-topbar .account > div:first-child {
        text-align: left;
    }
    span.acct-name,
    span.acct-role {
        text-align: left;
    }
}

/* --------------------------------------------------
   Max-width: 1024px
   -------------------------------------------------- */
@media (max-width: 1024px) {
    .product-wrapper {
        display: flex;
        flex-wrap: wrap;
        flex-direction: row;
        gap: 50px;
        justify-content: space-between;
    }
    .product-wrapper .product-left,
    .product-wrapper .product-right {
        flex: 0 0 100%;
    }
}

/* --------------------------------------------------
   Max-width: 980px
   -------------------------------------------------- */
@media (max-width: 980px) {
    /* Filter panel */
    .filter-panel {
        flex-wrap: wrap;
        border-radius: 10px;
    }
    .filter-panel .filter-panel-title {
        min-width: 100%;
        margin: 0 0 10px;
    }
    .filter-panel-inputs {
        flex: 0 0 33.33%;
        padding: 0 10px 10px;
    }

    /* Public topbar */
    .public-topbar {
        flex-wrap: wrap;
    }
    .public-topbar .nav-logo,
    .public-topbar .nav-search {
        width: 100%;
    }
    .public-topbar .nav-logo {
        padding: 5px 15px;
    }
    .public-topbar .nav-logo > div {
        float: none;
        padding: 5px 0;
    }
    .nav-search > div p {
        width: 100%;
        max-width: 50%;
        flex: 0 0 50%;
    }
    .product-list li {
        width: 32%;
    }

    /* Version history two-column layout */
    .vh-two-column {
        flex-wrap: wrap;
        flex-direction: column-reverse;
        gap: 0px;
    }
    .vh-two-column .vh-right,
    .vh-two-column .vh-left {
        width: 100%;
        flex: 0 0 100%;
    }
    .vh-two-column .vh-right .filter-panel .filter-panel-inputs,
    .vh-two-column .vh-right .filter-panel .filter-panel-inputs:nth-last-of-type(3),
    .vh-two-column .vh-right .filter-panel .filter-panel-inputs:nth-last-of-type(1) {
        flex: 0 0 33%;
        padding: 0 10px;
        margin: 10px auto 20px;
    }
    .lang-switcher-wrapper {
        width: 100%;
        justify-content: center;
    }
    .lang-switcher-wrapper > div {
        justify-content: center;
        text-align: center;
    }

    /* Content wrapper & product columns */
    .content-wrapper {
        padding: 20px;
    }
    .product-columns {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-between;
        flex-direction: column-reverse;
    }
    .product-columns.no-reverse {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: space-between;
        flex-direction: column;
    }
    .product-columns .left {
        width: 100%;
        flex: 0 0 100%;
        padding: 0;
    }
    .product-columns .right {
        width: auto;
        flex: 0 0 100%;
        margin: -20px -20px 0;
        padding: 20px;
    }
    .product-columns.no-reverse .right {
        width: auto;
        flex: 0 0 100%;
        margin: 20px -20px -20px;
        padding: 20px;
    }

    /* System status toggle & two-column */
    .system-status-toggle {
        flex: 0 0 100%;
        margin: 10px 0;
        justify-content: center;
    }
    .two-column section {
        width: 100%;
        flex: 0 0 100%;
    }
    .two-column {
        flex-wrap: wrap;
    }
}

/* --------------------------------------------------
   Max-width: 768px
   -------------------------------------------------- */
@media (max-width: 768px) {
    .nav-search > div p {
        width: 100%;
        max-width: 100%;
        flex: 1;
        margin-bottom: 10px;
    }
    .footer-logo-wrap {
        flex: 0 0 100%;
        text-align: center;
        padding: 20px 40px 0;
    }
    .public-footer > div {
        flex-wrap: wrap;
    }
    .product-list li {
        width: 49%;
    }
    /* Container & content padding */
    .admin-content,
    .public-content {
        padding: 1rem 0.75rem;
    }

    .admin-footer,
    .public-footer {
        padding: 1rem 0.75rem;
    }

    .admin-footer {
        flex-direction: column;
        text-align: center;
    }

    .admin-footer .admin-version {
        margin-left: 0;
    }

    .two-column{
        gap: 0;
    }

    .panel {
        padding: 1rem 0.85rem;
        margin-bottom: 0;
        border-radius: 6px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    h2.admin-header span {
        display: block;
        margin-top: 4px;
    }

    /* Stat grid: clean 2-column layout on mobile */
    .stat-grid {
        flex-wrap: wrap;
    }

    .stat-card {
        padding: 0.75rem;
        border-radius: 0px;
        flex: 0 50%;
    }

    .stat-card .stat-num {
        font-size: 1.5rem;
    }

    .stat-card span:last-child {
        font-size: 0.82rem;
        line-height: 1.25;
    }

    /* Form grid */
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Admin topbar */
    .admin-topbar {
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
    }

    .admin-topbar .brand {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .admin-topbar nav {
        flex-wrap: wrap;
        gap: 0.45rem 0.85rem;
        padding: 0.45rem 0;
        border-top: 0px solid rgba(255, 255, 255, 0.12);
        border-bottom: 0px solid rgba(255, 255, 255, 0.12);
    }

    .admin-topbar nav a {
        font-size: 0.88rem;
    }

    .admin-topbar .account {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 0.8rem;
        flex-wrap: wrap;
        gap: 0.4rem;
    }

    /* Public topbar */
    .public-topbar {
        flex-wrap: wrap;
        gap: 0rem;
    }
    .public-topbar .nav-logo > div {
        float: none;
        padding: 5px 0;
        flex-direction: column;
    }
    .public-topbar .nav-logo > div a {
        padding: 0 0 10px 0;
        border-right: 0px solid #222;
        margin-right: 0px;
        border-bottom: 1px solid #222;
        margin-bottom: 10px;
        justify-content: center;
        text-align: center;
    }
    .public-topbar .nav-logo > div .tagline {
        width: 100%;
        max-width: 100%;
        text-align: center;
    }
    .public-topbar .tagline {
        font-size: 0.8rem;
        width: 100%;
    }
    .public-topbar .nav-search > div {
        flex-direction: column;
        padding: 5px 15px;
    }
    .notice-strip {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    table.data-table th,
    table.data-table td {
        padding: 0.45rem 0.55rem;
        font-size: 0.85rem;
    }
    summary {
        text-align: center;
        color: var(--primary_color);
    }
}

/* --------------------------------------------------
   Min-width: 768px (desktop / tablet table column widths)
   -------------------------------------------------- */
@media (min-width: 768px) {
    table.data-table td[data-type="Language"],
    table.data-table td[data-type="Version"],
    table.data-table td[data-type="Status"],
    table.data-table td[data-type="Publish"] {
        width: 130px;
    }
}

/* --------------------------------------------------
   Max-width: 767px
   -------------------------------------------------- */
@media (max-width: 767px) {
    .request-form {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 16px;
        max-width: 100%;
    }
    /* Mobile data tables */
    .mobile-hidden {
        display: none;
    }
    .mobile-block {
        display: block;
    }
    td[colspan="7"] {
        width: 100%;
        flex: 0 0 100%;
        display: block !important;
    }
    .data-table thead {
        display: none;
    }
    .data-table tbody tr td {
        display: flex;
        padding: 10px;
        text-align: left !important;
        align-items: center;
        justify-content: space-between;
        border: none;
    }
    td[data-type="Requester Details"]:before {
        flex: 0 0 100%;
    }
    td[data-type="Requester Details"] {
        flex-wrap: wrap;
        align-items: start !important;
    }
    td[data-type="Requester Details"] > div {
        display: block;
        width: 100%;
        flex: 0 0 100%;
    }
    .data-table tbody tr td.version-history {
        justify-content: center;
    }
    .data-table tbody tr td:before {
        content: attr(data-type);
        display: block;
        font-weight: bold;
        text-align: left;
    }
    .data-table tbody tr td.mobile-center-action {
        justify-content: center;
        gap: 10px;
    }

    .data-table tbody tr td.mobile-center-action:before {
        display: none;
    }

    /* Notice strip toggle */
    .notice-toggle {
        display: flex;
        padding: 0;
    }

    .notice-content {
        display: none;
        padding: 0.6rem 1rem;
    }

    .notice-content.expanded {
        display: block;
    }
    .nav-search {
        flex-direction: column;
    }
    .search-hint.visible {
        display: block;
    }
    .nav-search > * {
        width: 90%;
    }

    /* Language switcher & version history filter panel */
    .lang-switcher-wrapper > div {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 5px;
        padding: 5px 0;
    }
    .vh-two-column .vh-right .filter-panel .filter-panel-inputs,
    .vh-two-column .vh-right .filter-panel .filter-panel-inputs:nth-last-of-type(3),
    .vh-two-column .vh-right .filter-panel .filter-panel-inputs:nth-last-of-type(1) {
        flex: 0 0 100%;
        padding: 0 10px;
        margin: 10px auto 10px;
    }

    /* Product form */
    form.product-form .field-group-half,
    form.product-form .field-group-third,
    form.product-form .field-group-fourth,
    form.product-form .field-group-two-third {
        width: 100%;
    }

    .mobile-br {
        display: block;
    }

    .file-input-pill {
        height: auto;
        min-height: 48px;
    }

    .file-input-prefix {
        font-size: 11px;
        line-height: 1.15;
        padding: 6px 12px;
        white-space: normal;
        text-align: left;
    }

    .file-input-btn {
        font-size: 12px;
        line-height: 1.15;
        padding-left: 10px;
        padding-right: 8px;
        white-space: normal;
        text-align: left;
    }

    .file-input-name {
        font-size: 11px;
        line-height: 1.15;
        white-space: normal;
        word-break: break-all;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        padding-right: 12px;
        text-align: left;
        align-self: center;
    }

    /* Dark panels & bottom links */
    section.bttm-link {
        margin: 20px -20px -20px;
    }
    section.dark-panel.flex-panel {
        flex-direction: column;
        text-align: left;
        gap: 10px;
    }
    section.product-changer-wrapper {
        display: flex;
        justify-content: space-between;
        align-items: start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }
    section.product-changer-wrapper > div {
        flex: 0 0 100%;
    }
    .inline-form .floating-label-group {
        position: relative;
        flex: 0 0 100%;
    }
    /* Keep paired inputs side-by-side on mobile */
    .inline-form.add-market-form .floating-label-group,
    .identifier-inputs-row .floating-label-group,
    .print-request-inputs .floating-label-group {
        flex: 1 1 auto;
        min-width: 0;
    }
    .print-request-form {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
        width: 100%;
    }
    .print-request-inputs {
        width: 100%;
    }
    .title-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .print-requests-table,
    .print-requests-table tbody {
        display: block;
        width: 100%;
    }
    .print-requests-table tbody tr,
    .print-requests-table tbody tr.row-danger {
        display: block;
        background: #F8F1E8 !important;
        border-radius: 16px;
        padding: 16px;
        margin-bottom: 16px;
        border-bottom: none;
    }
    .print-requests-table tbody tr td {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 6px 0;
        border: none;
        width: 100%;
        background: transparent !important;
    }
    .print-requests-table .badge-overdue {
        color: var(--color-danger, #dc3545);
        font-weight: 700;
        margin-left: 10px;
    }
    details form.product-form {
        background: #efefef;
        padding: 20px;
        margin: -10px;
        border-radius: 20px;
    }
    table.kv-table tr {
        display: flex;
        flex-direction: column;
    }
    table.kv-table td {
        word-wrap: anywhere;
    }
    table.kv-table th {
        font-weight: bold;
        color: #222;
    }
    form.product-form.mobile-columns {
        flex-direction: row;
        width: 100%;
    }
    form.product-form.mobile-columns > div {
        width: auto;
        flex: 1 1 100%;
    }
    .reset-pass-inputs {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
    }
    .reset-password-card {
        padding: 14px;
        border-radius: 14px;
    }
}

/* --------------------------------------------------
   Max-width: 680px
   -------------------------------------------------- */
@media (max-width: 680px) {
    .filter-panel-inputs {
        flex: 0 0 100%;
        padding: 0 10px 10px;
    }
}

/* --------------------------------------------------
   Max-width: 480px
   -------------------------------------------------- */
@media (max-width: 480px) {
    /* Auth page */
    .auth-box h1 {
        text-align: center;
        font-size: 18px;
        color: #080b62;
        background-color: #e6e7ef;
        margin: 0 -1.25rem 40px;
    }

    .login-fields {
        display: flex;
        gap: 20px;
        flex-direction: column;
    }

    /* Public product list & layout */
    .product-list li {
        width: 100%;
    }
    .admin-content,
    .public-content {
        padding: 0.75rem 0.5rem;
    }

    .panel {
        padding: 0.85rem 0.65rem;
    }

    .stat-grid {
        gap: 0;
        margin-left: -20px;
        margin-right: -20px;
        margin-top: -20px;
    }

    .stat-card {
        padding: 0.6rem;
        border-radius: 0px;
        flex: 0 50%;
    }
    .stat-card .stat-num {
        font-size: 1.35rem;
    }

    .auth-box {
        padding: 1.5rem 1.25rem;
    }
}

.subscriber-search-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.subscriber-search-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0;
}

.subscriber-search-box input[type="text"] {
    width: 100%;
    max-width: 400px;
    border-radius: 100px;
    border: 2px solid var(--primary_color, #2e1065);
    height: 40px;
    padding: 6px 42px 6px 16px;
    font-size: 0.9rem;
    background: #fff;
    color: var(--text, #222);
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.subscriber-search-box input[type="text"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 16, 101, 0.12);
}

.subscriber-search-box button {
    width: 36px;
    height: 36px;
    border-radius: 100px;
    overflow: hidden;
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    min-width: auto;
    z-index: 2;
    padding: 0;
    background: var(--primary_light_color, #faf5ff);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s;
}

.subscriber-search-box button:hover {
    opacity: 0.85;
}

.subscriber-search-box button img {
    width: 18px;
    height: 18px;
}

.subscriber-meta {
    font-size: 0.9rem;
    color: #666;
    margin-left: auto;
}

.admin-action-link {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
    line-height: inherit;
    display: inline-block;
}

.admin-action-link:hover {
    text-decoration: underline;
}

.admin-action-unsub {
    color: var(--color-danger, #dc2626);
}

.admin-action-reactivate {
    color: var(--link_color, #4a2fbd);
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    vertical-align: top;
    margin-left: 3px;
    margin-top: -4px;
}

.doc-title-row {
    margin: 20px 0 0;
}

.doc-title-heading {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.doc-title-heading .badge {
    margin-left: 4px;
}

.btn-icon-edit {
    background: transparent;
    color: var(--muted);
    border: 1px solid transparent;
    border-radius: 6px;
    min-width: 0;
    padding: 4px 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-icon-edit:hover,
.btn-icon-edit:focus-visible {
    background: var(--primary_light_color, #f2ebfc);
    color: var(--primary_color, #783fdc) !important;
    border-color: var(--border);
}

.doc-title-edit-form {
    margin-top: 0;
    margin-bottom: 10px;
}

.doc-title-edit-form input[name="title"] {
    flex: 1 1 280px;
    max-width: 520px;
    min-width: 180px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading-color);
}

.btn-doc-title-cancel {
    background: #e5e7eb;
    color: #1c2530;
    min-width: 80px;
}

.btn-doc-title-cancel:hover,
.btn-doc-title-cancel:focus-visible {
    background: #d1d5db;
    color: #1c2530 !important;
}

.admin-version-link {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px dotted transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.admin-version-link:hover,
.admin-version-link:focus-visible {
    color: var(--link-color, #4a2fbd);
    border-bottom-color: currentColor;
}

.release-notes-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border, #d9e0e5);
}

.release-current-pill {
    background: var(--primary_light_color, #f2ebfc);
    color: var(--heading-color, #2d1b82);
    border: 1px solid var(--border, #d9e0e5);
    border-radius: 999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.release-notes-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.release-note-card {
    border: 1px solid var(--border, #d9e0e5);
    border-radius: 14px;
    padding: 1.5rem;
    background: #fafbfc;
}

.release-note-card.is-current {
    border-color: var(--primary_color, #783fdc);
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(120, 63, 220, 0.08);
}

.release-note-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin-bottom: 0.75rem;
}

.release-note-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.65rem;
}

.release-version-pill {
    display: inline-block;
    background: var(--heading-color, #2d1b82);
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
}

.release-current-badge {
    display: inline-block;
    background: #d9f0df;
    color: #084018;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.release-note-title {
    margin: 0;
    font-size: 1.15rem;
    color: var(--heading-color, #2d1b82);
}

.release-date {
    font-size: 0.88rem;
    white-space: nowrap;
}

.release-summary {
    margin: 0 0 1.15rem;
    color: var(--text, #1c2530);
    line-height: 1.55;
}

.release-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.release-category-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.18rem 0.6rem;
    border-radius: 6px;
    margin-bottom: 0.45rem;
}

.release-category-badge.cat-added {
    background: #dcfce7;
    color: #166534;
}

.release-category-badge.cat-changed {
    background: #ede9fe;
    color: #5b21b6;
}

.release-category-badge.cat-fixed {
    background: #dbeafe;
    color: #1e40af;
}

.release-category-badge.cat-security {
    background: #fef3c7;
    color: #92400e;
}

.release-category-badge.cat-removed {
    background: #fee2e2;
    color: #991b1b;
}

.release-category-badge.cat-default {
    background: #e5e7eb;
    color: #374151;
}

.release-list {
    margin: 0;
    padding-left: 1.35rem;
    color: var(--text, #1c2530);
    line-height: 1.6;
}

.release-list li + li {
    margin-top: 0.35rem;
}