:root {
    --doi-blue: #1778c8;
    --doi-accent-red: #e44854;
    --doi-blue-dark: #0b3768;
    --doi-navy: #09243f;
    --doi-sky: #eaf6ff;
    --doi-ink: #182335;
    --doi-muted: #738195;
    --doi-line: #e4ebf3;
    --doi-card: #ffffff;
    --doi-shadow: 0 18px 45px rgba(15, 50, 85, 0.12);
}

html,
body {
    min-height: 100%;
}

body {
    color: var(--doi-ink);
    font-family: Arial, Helvetica, sans-serif;
    letter-spacing: 0;
}

.doi-auth-page {
    background:
        radial-gradient(circle at 12% 18%, rgba(255,255,255,0.9), transparent 28%),
        linear-gradient(135deg, #dff4ff 0%, #eff9ff 42%, #c8eaff 100%);
    min-height: 100vh;
}

.doi-auth-wrap {
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 54px);
    padding: 36px 18px 20px;
}

.doi-login-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 18px;
    box-shadow: var(--doi-shadow);
    max-width: 460px;
    padding: 34px;
    width: 100%;
}

.doi-login-brand {
    text-align: center;
}

.doi-login-logo {
    display: block;
    height: auto;
    margin: 0 auto;
    max-height: 120px;
    max-width: 420px;
    object-fit: contain;
    width: 100%;
}

.doi-login-brand strong {
    color: var(--doi-blue-dark);
    display: block;
    font-size: 15px;
    margin-top: 12px;
}

.doi-version-pill {
    background: #eaf4ff;
    border: 1px solid #c9e4fb;
    border-radius: 999px;
    color: var(--doi-blue-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    margin-top: 10px;
    padding: 5px 12px;
}

.doi-login-card .form-control {
    background: #f7fbff;
    border: 1px solid #dbe9f6;
    border-radius: 10px;
    color: var(--doi-ink);
    min-height: 46px;
    padding-left: 14px;
}

.doi-primary-btn {
    background: linear-gradient(135deg, #1b88d5, #0c4d8e);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 10px 22px rgba(23, 120, 200, 0.28);
    color: #fff;
    font-weight: 700;
    min-height: 46px;
}

.doi-login-links,
.doi-login-lang {
    display: flex;
    justify-content: space-between;
    margin-top: 14px;
}

.doi-logo-strip {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(120px, 1fr));
    margin-top: 24px;
    max-width: 820px;
    width: 100%;
}

.doi-logo-tile {
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: 14px;
    box-shadow: 0 10px 26px rgba(15, 50, 85, 0.08);
    display: flex;
    justify-content: center;
    min-height: 78px;
    padding: 12px;
}

.doi-logo-tile img {
    max-height: 42px;
    max-width: 150px;
    object-fit: contain;
}

.doi-app-frame {
    background: #f3f6fa;
    display: flex;
    min-height: 100vh;
}

.doi-sidebar {
    background: linear-gradient(180deg, #111a27 0%, #08111d 100%);
    box-shadow: 10px 0 30px rgba(3, 10, 18, 0.22);
    color: #dcecff;
    flex: 0 0 272px;
    min-height: 100vh;
    position: fixed;
    top: 0;
    bottom: 0;
    width: 272px;
    z-index: 20;
}

.doi-sidebar-brand {
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    gap: 12px;
    min-height: 84px;
    padding: 16px 20px;
}

.doi-sidebar-logo {
    background: #fff;
    border-radius: 10px;
    display: block;
    height: auto;
    max-height: 52px;
    max-width: 150px;
    object-fit: contain;
    padding: 6px;
    width: auto;
}

.doi-sidebar-brand span {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.doi-logo-fallback {
    color: #fff;
    display: inline-flex;
    font-weight: 800;
}

.doi-sidebar-nav {
    padding: 14px 12px 24px;
}

.doi-nav-link,
.doi-nav-children a {
    align-items: center;
    border-left: 3px solid transparent;
    border-radius: 10px;
    color: #d6deea;
    display: flex;
    gap: 12px;
    padding: 11px 12px;
}

.doi-nav-link i {
    font-size: 20px;
    width: 22px;
}

.doi-nav-group.is-active .doi-nav-link,
.doi-nav-link:hover,
.doi-nav-children a:hover {
    background: rgba(23,120,200,0.18);
    border-left-color: var(--doi-accent-red);
    color: #fff;
}

.doi-nav-children {
    margin: 2px 0 8px 42px;
}

.doi-nav-children a {
    align-items: center;
    color: #b9d5f2;
    display: flex;
    gap: 8px;
    font-size: 13px;
    padding: 7px 10px;
}

.doi-nav-children i {
    font-size: 15px;
    width: 18px;
}

.doi-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    margin-left: 272px;
    min-width: 0;
}

.doi-topbar {
    align-items: center;
    background: linear-gradient(135deg, #1277c5, #0a3b6f);
    box-shadow: 0 12px 32px rgba(7, 48, 90, 0.16);
    color: #fff;
    display: flex;
    justify-content: space-between;
    min-height: 76px;
    padding: 0 28px;
}

.doi-header-brand {
    align-items: center;
    color: #fff;
    display: flex;
    gap: 10px;
    min-width: 180px;
}

.doi-header-logo {
    background: rgba(255,255,255,0.96);
    border-radius: 8px;
    display: block;
    height: auto;
    max-height: 34px;
    max-width: 110px;
    object-fit: contain;
    padding: 4px 6px;
    width: auto;
}

.doi-header-brand span {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.doi-tenant strong,
.doi-tenant span {
    display: block;
}

.doi-tenant span {
    color: #cde8ff;
    font-size: 13px;
    margin-top: 3px;
}

.doi-header-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.doi-credit-badge,
.doi-lang,
.doi-profile-link {
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 999px;
    color: #fff;
    padding: 7px 12px;
}

.doi-lang.active {
    background: #fff;
    color: var(--doi-blue-dark);
    font-weight: 700;
}

.doi-mobile-menu {
    background: rgba(255,255,255,0.16);
    border: 0;
    border-radius: 10px;
    color: #fff;
    display: none;
    height: 42px;
    width: 42px;
}

.doi-content {
    flex: 1;
    padding: 30px;
}

.doi-content > * {
    margin-left: auto;
    margin-right: auto;
    max-width: 1400px;
    width: 100%;
}

.doi-page-title {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.doi-page-title span {
    color: var(--doi-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.doi-page-title h1 {
    color: var(--doi-ink);
    font-size: 28px;
    margin: 4px 0 0;
}

.panel,
.doi-panel,
.doi-card {
    background: var(--doi-card);
    border: 1px solid var(--doi-line);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 50, 85, 0.07);
    margin-bottom: 20px;
    padding: 20px;
}

.doi-form-section {
    background: #fff;
    border: 1px solid var(--doi-line);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(15, 50, 85, 0.07);
    margin: 26px 0;
    padding: 24px;
}

.doi-form-section legend {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #d9eafb;
    border-radius: 999px;
    color: var(--doi-blue-dark);
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    gap: 8px;
    margin-bottom: 18px;
    padding: 8px 14px;
    width: auto;
}

.doi-form-section legend i {
    color: var(--doi-blue);
    font-size: 20px;
}

.doi-form-section .form-group label {
    color: #344256;
    font-weight: 700;
}

.doi-stats-grid,
.stats {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-bottom: 22px;
}

.doi-stat-card,
.stat {
    background: linear-gradient(180deg, #fff, #f8fbff);
    border: 1px solid var(--doi-line);
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(15, 50, 85, 0.08);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.doi-stat-card::after {
    background: linear-gradient(135deg, rgba(23,120,200,0.12), rgba(23,120,200,0));
    border-radius: 999px;
    content: "";
    height: 120px;
    position: absolute;
    right: -42px;
    top: -42px;
    width: 120px;
}

.doi-stat-icon {
    align-items: center;
    background: #eaf4ff;
    border-radius: 12px;
    color: var(--doi-blue);
    display: flex;
    font-size: 24px;
    height: 48px;
    justify-content: center;
    margin-bottom: 14px;
    width: 48px;
}

.doi-stat-card strong,
.stat strong {
    color: var(--doi-navy);
    display: block;
    font-size: 32px;
    line-height: 1;
}

.doi-stat-card span,
.stat span {
    color: var(--doi-muted);
    display: block;
    font-size: 13px;
    margin-top: 8px;
}

.doi-two-col {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.doi-table {
    width: 100%;
}

.doi-table th {
    border-top: 0;
    color: #526174;
    font-size: 12px;
    text-transform: uppercase;
}

.doi-status {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
}

.doi-status-draft,
.doi-status-imported {
    background: #eef3f8;
    color: #516173;
}

.doi-status-ready,
.doi-status-update_ready {
    background: #fff6df;
    color: #936000;
}

.doi-status-submitted {
    background: #e8f3ff;
    color: #1264aa;
}

.doi-status-registered,
.doi-status-updated {
    background: #e7f8ee;
    color: #14743a;
}

.doi-status-failed {
    background: #ffe9e7;
    color: #b33125;
}

.form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.form-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doi-panel .form-control,
.doi-entry-form input.form-control,
.doi-entry-form textarea.form-control,
.doi-entry-form select.form-control {
    background-color: #fff;
    border: 1px solid #d8e3ee;
    border-radius: 9px;
    color: #111827;
    line-height: 1.45;
    min-height: 44px;
    opacity: 1;
    -webkit-text-fill-color: #111827;
}

.doi-panel textarea.form-control,
.doi-entry-form textarea.form-control {
    min-height: 120px;
    padding-top: 12px;
}

.doi-panel .form-control:focus,
.doi-entry-form input.form-control:focus,
.doi-entry-form textarea.form-control:focus,
.doi-entry-form select.form-control:focus {
    background-color: #fff;
    border-color: var(--doi-blue);
    box-shadow: 0 0 0 3px rgba(23, 120, 200, 0.12);
    color: #111827;
    outline: 0;
    -webkit-text-fill-color: #111827;
}

.doi-panel .form-control::placeholder,
.doi-entry-form input.form-control::placeholder,
.doi-entry-form textarea.form-control::placeholder {
    color: #9aa3af;
    opacity: 1;
    -webkit-text-fill-color: #9aa3af;
}

.doi-panel .form-control::-webkit-input-placeholder,
.doi-entry-form input.form-control::-webkit-input-placeholder,
.doi-entry-form textarea.form-control::-webkit-input-placeholder {
    color: #9aa3af;
}

.doi-panel .form-control::-moz-placeholder,
.doi-entry-form input.form-control::-moz-placeholder,
.doi-entry-form textarea.form-control::-moz-placeholder {
    color: #9aa3af;
    opacity: 1;
}

.doi-panel .form-control:-ms-input-placeholder,
.doi-entry-form input.form-control:-ms-input-placeholder,
.doi-entry-form textarea.form-control:-ms-input-placeholder {
    color: #9aa3af;
}

.form-group-wide {
    grid-column: 1 / -1;
}

.title-input-wrap .form-control {
    font-size: 18px;
    font-weight: 700;
    min-height: 54px;
}

.journal-summary {
    background: #f7fbff;
    border: 1px solid #d8e8f7;
    border-radius: 12px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin: 0 0 18px;
    padding: 14px;
}

.journal-summary label {
    color: var(--doi-muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
}

.journal-summary .form-control[readonly] {
    background: #fff;
    color: var(--doi-ink);
    cursor: default;
}

.doi-contributor-row.is-hidden {
    display: none;
}

.btn-icon {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.doi-suggestion {
    align-items: center;
    background: linear-gradient(135deg, #eef7ff, #ffffff);
    border: 1px solid #cce4f8;
    border-radius: 12px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 18px;
    padding: 14px 16px;
}

.doi-suggestion span {
    color: var(--doi-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.doi-suggestion button {
    border-radius: 9px;
    font-weight: 800;
}

.doi-suggestion strong {
    color: var(--doi-blue-dark);
    display: block;
    font-size: 18px;
    margin-top: 4px;
}

.section-help {
    color: var(--doi-muted);
    margin: 0 0 12px;
}

.reference-example {
    background: #fbfcfe;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #334155;
    font-size: 13px;
    padding: 12px 14px;
}

.reference-example summary,
.doi-advanced-fields summary {
    color: var(--doi-blue-dark);
    cursor: pointer;
    font-weight: 800;
}

.reference-example p {
    margin: 7px 0 0;
}

.section-title {
    align-items: center;
    color: var(--doi-blue-dark);
    display: flex;
    font-size: 18px;
    gap: 8px;
    margin: 0 0 16px;
}

.form-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    grid-column: 1 / -1;
    margin-top: 8px;
}

.required-mark {
    background: transparent;
    border-radius: 0;
    color: #b42330;
    display: inline;
    font-size: 16px;
    font-weight: 700;
    margin-left: 4px;
    padding: 0;
}

.field-error {
    color: #c9303c;
    font-size: 12px;
    font-weight: 700;
    margin-top: 6px;
}

.form-control.is-invalid {
    border-color: #e44854;
    box-shadow: 0 0 0 3px rgba(228, 72, 84, 0.1);
}

.doi-tabs {
    border-bottom: 1px solid var(--doi-line);
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.doi-tabs a {
    border-radius: 10px 10px 0 0;
    color: var(--doi-muted);
    font-weight: 700;
    padding: 11px 14px;
}

.doi-tabs a.active {
    background: #eaf4ff;
    color: var(--doi-blue-dark);
}

.doi-workspace {
    padding-bottom: 88px;
}

.doi-steps {
    background: #fff;
    border: 1px solid var(--doi-line);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(15, 50, 85, 0.06);
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 24px;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 8;
}

.doi-steps a {
    align-items: center;
    border-radius: 10px;
    color: #526174;
    display: flex;
    font-size: 13px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    text-align: center;
}

.doi-steps a span {
    align-items: center;
    background: #eef3f8;
    border-radius: 999px;
    display: inline-flex;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.doi-steps a.active,
.doi-steps a:hover {
    background: #eaf4ff;
    color: var(--doi-blue-dark);
}

.doi-steps a.active span,
.doi-steps a:hover span {
    background: var(--doi-blue);
    color: #fff;
}

.doi-section-heading {
    align-items: flex-start;
    border-bottom: 1px solid #edf2f7;
    display: flex;
    gap: 12px;
    margin: -2px 0 20px;
    padding-bottom: 16px;
}

.doi-section-heading h2 {
    color: var(--doi-navy);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
}

.doi-section-heading p {
    color: var(--doi-muted);
    font-size: 13px;
    margin: 4px 0 0;
}

.doi-section-heading-actions {
    align-items: center;
}

.doi-section-heading-actions > div:nth-child(2) {
    flex: 1;
}

.doi-section-icon {
    align-items: center;
    background: #eaf4ff;
    border-radius: 12px;
    color: var(--doi-blue);
    display: flex;
    flex: 0 0 42px;
    font-size: 22px;
    height: 42px;
    justify-content: center;
}

.doi-small-control {
    max-width: 190px;
}

.doi-author-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.doi-choice-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-bottom: 18px;
}

.doi-choice-card {
    background: #fbfdff;
    border: 1px solid #dfeaf5;
    border-radius: 12px;
    cursor: pointer;
    display: block;
    min-height: 96px;
    padding: 16px;
}

.doi-choice-card input {
    margin-right: 8px;
}

.doi-choice-card strong {
    color: var(--doi-navy);
    display: inline-block;
    font-size: 15px;
}

.doi-choice-card span {
    color: var(--doi-muted);
    display: block;
    font-size: 13px;
    margin: 8px 0 0 25px;
}

.doi-import-switch {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.doi-inline-check {
    align-items: center;
    color: var(--doi-muted);
    display: inline-flex;
    font-size: 12px;
    gap: 6px;
    margin-top: 8px;
}

.doi-author-card {
    background: #fbfdff;
    border: 1px solid #e2ecf5;
    border-radius: 12px;
    padding: 16px;
}

.doi-author-card-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.doi-author-card-head strong {
    color: var(--doi-navy);
    font-size: 15px;
}

.doi-author-card-head span,
.orcid-status,
.doi-availability {
    background: #eef3f8;
    border-radius: 999px;
    color: #526174;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 9px;
}

.orcid-status {
    margin-left: 6px;
    padding: 3px 8px;
}

.orcid-status.is-ok,
.doi-availability.is-ok {
    background: #e7f8ee;
    color: #14743a;
}

.orcid-status.is-bad,
.doi-availability.is-bad {
    background: #ffe9e7;
    color: #b33125;
}

.doi-availability {
    align-self: end;
    justify-self: start;
    min-height: 28px;
}

.doi-advanced-fields {
    border-top: 1px dashed #dce7f2;
    margin-top: 12px;
    padding-top: 10px;
}

.doi-advanced-fields .form-group {
    margin-top: 12px;
}

.doi-advanced-url {
    opacity: 0.88;
}

.doi-action-bar {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--doi-line);
    border-radius: 14px;
    bottom: 18px;
    box-shadow: 0 16px 40px rgba(15, 50, 85, 0.16);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    margin: 28px auto 0;
    max-width: 1400px;
    padding: 12px;
    position: sticky;
    z-index: 12;
}

.action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.doi-footer {
    align-items: center;
    color: #738195;
    display: flex;
    gap: 8px;
    justify-content: center;
    min-height: 54px;
    padding: 0 18px;
}

@media (max-width: 980px) {
    .doi-sidebar {
        transform: translateX(-100%);
        transition: transform .2s ease;
    }
    .doi-sidebar-open .doi-sidebar {
        transform: translateX(0);
    }
    .doi-main {
        margin-left: 0;
    }
    .doi-mobile-menu {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .doi-two-col,
    .doi-logo-strip {
        grid-template-columns: 1fr;
    }
    .doi-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }
    .doi-login-logo {
        max-width: 280px;
    }
    .doi-header-brand {
        min-width: 0;
    }
    .doi-header-logo {
        max-width: 90px;
    }
    .doi-content {
        padding: 18px;
    }
    .doi-steps,
    .doi-author-grid,
    .form-grid-two {
        grid-template-columns: 1fr;
    }
    .doi-steps {
        position: static;
    }
    .doi-section-heading-actions {
        align-items: flex-start;
        flex-direction: column;
    }
    .doi-action-bar {
        bottom: 10px;
        justify-content: stretch;
    }
    .doi-action-bar .btn {
        flex: 1 1 100%;
    }
}

/* Corporate navigation refresh */
:root {
    --doi-shell-bg: #f5f7fb;
    --doi-sidebar-bg: #101827;
    --doi-sidebar-bg-2: #0b1220;
    --doi-sidebar-text: #c8d2df;
    --doi-sidebar-muted: #8996aa;
    --doi-admin-accent: #d1485f;
    --doi-customer-accent: #2aa6a1;
    --doi-focus-ring: rgba(42, 166, 161, 0.18);
}

.doi-app-frame {
    background:
        linear-gradient(180deg, #f8fafc 0%, var(--doi-shell-bg) 100%);
}

.doi-sidebar {
    background:
        linear-gradient(180deg, rgba(255,255,255,0.035), transparent 26%),
        linear-gradient(180deg, var(--doi-sidebar-bg) 0%, var(--doi-sidebar-bg-2) 100%);
    box-shadow: 14px 0 42px rgba(10, 18, 32, 0.18);
}

.doi-sidebar::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
    content: "";
    inset: 0 0 auto;
    height: 1px;
    position: absolute;
}

.doi-sidebar-brand {
    border-bottom-color: rgba(255,255,255,0.09);
    min-height: 92px;
}

.doi-sidebar-logo {
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    box-shadow: 0 12px 26px rgba(0,0,0,0.18);
}

.doi-sidebar-brand span {
    display: grid;
    gap: 5px;
    line-height: 1.1;
}

.doi-sidebar-brand small {
    align-items: center;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    color: var(--doi-sidebar-muted);
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    justify-content: center;
    padding: 4px 9px;
    text-transform: uppercase;
}

.doi-sidebar-admin .doi-sidebar-brand small {
    background: rgba(209, 72, 95, 0.15);
    color: #ffd5dd;
}

.doi-sidebar-customer .doi-sidebar-brand small {
    background: rgba(42, 166, 161, 0.14);
    color: #c8fffb;
}

.doi-nav-link,
.doi-nav-children a {
    border-left: 0;
    border-radius: 8px;
    color: var(--doi-sidebar-text);
    position: relative;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.doi-nav-link::before {
    background: var(--doi-customer-accent);
    border-radius: 999px;
    content: "";
    height: 24px;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translate(-8px, -50%);
    width: 4px;
}

.doi-sidebar-admin .doi-nav-link::before {
    background: var(--doi-admin-accent);
}

.doi-nav-link i {
    color: #91a1b8;
    transition: color .18s ease;
}

.doi-nav-link:hover,
.doi-nav-children a:hover {
    background: rgba(255,255,255,0.07);
    color: #fff;
    transform: translateX(2px);
}

.doi-nav-link:hover i,
.doi-nav-group.is-active .doi-nav-link i {
    color: #fff;
}

.doi-nav-group.is-active .doi-nav-link {
    background: rgba(42, 166, 161, 0.18);
    box-shadow: inset 0 0 0 1px rgba(42, 166, 161, 0.20);
    color: #fff;
}

.doi-sidebar-admin .doi-nav-group.is-active .doi-nav-link {
    background: rgba(209, 72, 95, 0.18);
    box-shadow: inset 0 0 0 1px rgba(209, 72, 95, 0.22);
}

.doi-nav-group.is-active .doi-nav-link::before {
    opacity: 1;
}

.doi-nav-children {
    border-left: 1px solid rgba(255,255,255,0.08);
    margin-left: 24px;
    padding-left: 16px;
}

.doi-nav-children a {
    color: #aeb9ca;
}

.doi-topbar {
    background: rgba(255,255,255,0.94);
    border-bottom: 1px solid #e3e9f2;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    color: #142033;
}

.doi-header-brand,
.doi-header-brand span {
    color: #142033;
}

.doi-header-logo {
    border: 1px solid #e1e8f1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.07);
}

.doi-tenant strong {
    color: #111827;
}

.doi-tenant span {
    color: #667085;
}

.doi-credit-badge,
.doi-lang,
.doi-profile-link {
    background: #f7fafc;
    border-color: #e1e8f1;
    color: #2f3b4c;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.doi-credit-badge i {
    margin-right: 6px;
}

.doi-lang:hover,
.doi-profile-link:hover {
    background: #fff;
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    color: #101827;
}

.doi-lang.active {
    background: var(--doi-customer-accent);
    border-color: var(--doi-customer-accent);
    color: #fff;
}

.doi-role-admin .doi-lang.active {
    background: var(--doi-admin-accent);
    border-color: var(--doi-admin-accent);
}

.doi-mobile-menu {
    background: #eef3f7;
    color: #142033;
}

.doi-page-title span {
    color: var(--doi-customer-accent);
}

.doi-role-admin .doi-page-title span {
    color: var(--doi-admin-accent);
}

.panel,
.doi-panel,
.doi-card,
.doi-form-section {
    border-color: #e4e9f1;
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.doi-stat-card,
.stat {
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.btn,
.doi-primary-btn {
    border-radius: 8px;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, transform .18s ease;
}

.btn:hover,
.doi-primary-btn:hover {
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.10);
    transform: translateY(-1px);
}

.doi-primary-btn,
.btn-primary {
    background: #2563eb;
    border-color: #2563eb;
}

.doi-role-admin .doi-primary-btn,
.doi-role-admin .btn-primary {
    background: #be4055;
    border-color: #be4055;
}

.doi-role-customer .doi-primary-btn,
.doi-role-customer .btn-primary {
    background: #168f8a;
    border-color: #168f8a;
}

.form-control:focus,
.doi-panel .form-control:focus,
.doi-entry-form input.form-control:focus,
.doi-entry-form textarea.form-control:focus,
.doi-entry-form select.form-control:focus {
    border-color: var(--doi-customer-accent);
    box-shadow: 0 0 0 3px var(--doi-focus-ring);
}

.doi-role-admin .form-control:focus,
.doi-role-admin .doi-panel .form-control:focus,
.doi-role-admin .doi-entry-form input.form-control:focus,
.doi-role-admin .doi-entry-form textarea.form-control:focus,
.doi-role-admin .doi-entry-form select.form-control:focus {
    border-color: var(--doi-admin-accent);
    box-shadow: 0 0 0 3px rgba(209, 72, 95, 0.16);
}

.doi-credit-amount-input,
.doi-credit-amount-input:focus,
.modal .doi-credit-amount-input,
.modal .doi-credit-amount-input:focus {
    background-color: #fff !important;
    color: #111827 !important;
    caret-color: #111827;
    opacity: 1;
    -webkit-text-fill-color: #111827 !important;
}

.doi-credit-textbox,
.doi-credit-textbox:hover,
.doi-credit-textbox:focus,
.doi-credit-textbox:active {
    appearance: auto;
    -webkit-appearance: auto;
    background: #fff !important;
    border: 1px solid #9ca3af;
    border-radius: 4px;
    box-shadow: none;
    color: #111827 !important;
    caret-color: #111827;
    display: block;
    font: 16px Arial, Helvetica, sans-serif;
    line-height: 1.4;
    min-height: 40px;
    outline: none;
    padding: 8px 10px;
    width: 100%;
    -webkit-text-fill-color: #111827 !important;
}

.doi-credit-textbox:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

@media (max-width: 980px) {
    .doi-topbar {
        background: #fff;
    }
    .doi-sidebar {
        box-shadow: 18px 0 44px rgba(10, 18, 32, 0.26);
    }
}

/* Papirus-style navigation and form polish */
.doi-sidebar {
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    box-shadow: 8px 0 28px rgba(15, 23, 42, 0.06);
    color: #111827;
}

.doi-sidebar-brand {
    border-bottom: 1px solid #eef2f7;
    color: #111827;
    min-height: 88px;
}

.doi-sidebar-brand span {
    color: #111827;
}

.doi-sidebar-brand small {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #6b7280;
}

.doi-sidebar-logo {
    border: 1px solid #e5e7eb;
    box-shadow: none;
}

.doi-sidebar-nav {
    padding: 14px 12px 24px;
}

.doi-nav-link,
.doi-nav-children a {
    border-radius: 8px;
    color: #4b5563;
    min-height: 42px;
    padding: 10px 12px;
}

.doi-nav-link i,
.doi-nav-children i {
    color: #6b7280;
}

.doi-nav-link span,
.doi-nav-children span {
    flex: 1;
}

.doi-nav-chevron {
    font-size: 18px;
    margin-left: auto;
    pointer-events: none;
    transition: transform .18s ease;
}

.doi-nav-group.has-children.is-open .doi-nav-chevron {
    transform: rotate(180deg);
}

.doi-nav-link::before {
    display: none;
}

.doi-nav-link:hover,
.doi-nav-children a:hover,
.doi-nav-group.is-active > .doi-nav-link {
    background: #eef2ff;
    box-shadow: none;
    color: #1f2937;
    transform: none;
}

.doi-nav-link:hover i,
.doi-nav-children a:hover i,
.doi-nav-group.is-active > .doi-nav-link i {
    color: #2563eb;
}

.doi-sidebar-admin .doi-nav-link:hover,
.doi-sidebar-admin .doi-nav-children a:hover,
.doi-sidebar-admin .doi-nav-group.is-active > .doi-nav-link {
    background: #fff1f2;
}

.doi-sidebar-admin .doi-nav-link:hover i,
.doi-sidebar-admin .doi-nav-children a:hover i,
.doi-sidebar-admin .doi-nav-group.is-active > .doi-nav-link i {
    color: #be4055;
}

.doi-nav-children {
    border-left: 1px solid #e5e7eb;
    display: none;
    margin: 4px 0 8px 21px;
    padding-left: 10px;
}

.doi-nav-group.is-open > .doi-nav-children {
    display: grid;
    gap: 2px;
}

.doi-nav-children a {
    font-size: 13px;
    min-height: 36px;
    padding: 8px 10px;
}

.form-control,
.form-control:focus,
.custom-file-control:focus,
.doi-panel .form-control,
.doi-panel .form-control:focus,
.doi-entry-form input.form-control,
.doi-entry-form input.form-control:focus,
.doi-entry-form textarea.form-control,
.doi-entry-form textarea.form-control:focus,
.doi-entry-form select.form-control,
.doi-entry-form select.form-control:focus,
.is-focused .form-control {
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    box-shadow: none;
    color: #111827 !important;
    opacity: 1;
    -webkit-text-fill-color: #111827 !important;
}

.form-control:focus,
.doi-panel .form-control:focus,
.doi-entry-form input.form-control:focus,
.doi-entry-form textarea.form-control:focus,
.doi-entry-form select.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: 0;
}

.doi-role-admin .form-control:focus,
.doi-role-admin .doi-panel .form-control:focus,
.doi-role-admin .doi-entry-form input.form-control:focus,
.doi-role-admin .doi-entry-form textarea.form-control:focus,
.doi-role-admin .doi-entry-form select.form-control:focus {
    border-color: #be4055;
    box-shadow: 0 0 0 3px rgba(190, 64, 85, 0.12);
}

html[data-doi-theme="dark"] .doi-app-frame {
    background: #111827;
}

html[data-doi-theme="dark"] .doi-sidebar {
    background: linear-gradient(180deg, #111827 0%, #0b1120 100%);
    border-right-color: rgba(148, 163, 184, 0.16);
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.22);
    color: #e5e7eb;
}

html[data-doi-theme="dark"] .doi-sidebar-brand {
    border-bottom-color: rgba(148, 163, 184, 0.16);
    color: #f9fafb;
}

html[data-doi-theme="dark"] .doi-sidebar-brand span {
    color: #f9fafb;
}

html[data-doi-theme="dark"] .doi-sidebar-brand small {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
}

html[data-doi-theme="dark"] .doi-sidebar-logo {
    background: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
}

html[data-doi-theme="dark"] .doi-nav-link,
html[data-doi-theme="dark"] .doi-nav-children a {
    color: #cbd5e1;
}

html[data-doi-theme="dark"] .doi-nav-link i,
html[data-doi-theme="dark"] .doi-nav-children i {
    color: #94a3b8;
}

html[data-doi-theme="dark"] .doi-nav-link:hover,
html[data-doi-theme="dark"] .doi-nav-children a:hover,
html[data-doi-theme="dark"] .doi-nav-group.is-active > .doi-nav-link {
    background: rgba(37, 99, 235, 0.16);
    color: #ffffff;
}

html[data-doi-theme="dark"] .doi-sidebar-admin .doi-nav-link:hover,
html[data-doi-theme="dark"] .doi-sidebar-admin .doi-nav-children a:hover,
html[data-doi-theme="dark"] .doi-sidebar-admin .doi-nav-group.is-active > .doi-nav-link {
    background: rgba(190, 64, 85, 0.18);
}

html[data-doi-theme="dark"] .doi-nav-children {
    border-left-color: rgba(148, 163, 184, 0.20);
}

html[data-doi-theme="dark"] .doi-topbar {
    background: #ffffff;
}

html[data-doi-theme="dark"] .doi-content {
    background: #111827;
}

html[data-doi-theme="dark"] .doi-page-title h1 {
    color: #f9fafb;
}

html[data-doi-theme="dark"] .doi-page-title span {
    color: #93c5fd;
}

html[data-doi-theme="dark"] .panel,
html[data-doi-theme="dark"] .doi-panel,
html[data-doi-theme="dark"] .doi-card,
html[data-doi-theme="dark"] .doi-form-section,
html[data-doi-theme="dark"] .stat,
html[data-doi-theme="dark"] .doi-stat-card {
    background: #1f2937;
    border-color: rgba(148, 163, 184, 0.22);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.20);
    color: #e5e7eb;
}

html[data-doi-theme="dark"] .doi-panel h2,
html[data-doi-theme="dark"] .doi-form-section legend,
html[data-doi-theme="dark"] .doi-section-heading h2,
html[data-doi-theme="dark"] .section-title,
html[data-doi-theme="dark"] .stat strong,
html[data-doi-theme="dark"] .doi-stat-card strong {
    color: #f9fafb;
}

html[data-doi-theme="dark"] .section-help,
html[data-doi-theme="dark"] .doi-section-heading p,
html[data-doi-theme="dark"] .stat span,
html[data-doi-theme="dark"] .doi-stat-card span,
html[data-doi-theme="dark"] .doi-choice-card span,
html[data-doi-theme="dark"] .journal-summary label,
html[data-doi-theme="dark"] .doi-form-section .form-group label {
    color: #cbd5e1;
}

html[data-doi-theme="dark"] .table {
    color: #e5e7eb;
}

html[data-doi-theme="dark"] .table th,
html[data-doi-theme="dark"] .table td {
    border-color: rgba(148, 163, 184, 0.18);
}

html[data-doi-theme="dark"] .table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(15, 23, 42, 0.34);
}

html[data-doi-theme="dark"] .table-striped tbody tr:nth-of-type(even) {
    background-color: rgba(31, 41, 55, 0.62);
}

.doi-theme-toggle {
    align-items: center;
    background: #f7fafc;
    border: 1px solid #e1e8f1;
    border-radius: 999px;
    color: #2f3b4c;
    cursor: pointer;
    display: inline-flex;
    gap: 6px;
    min-height: 36px;
    padding: 7px 12px;
}

.doi-theme-toggle:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
