:root {
    color-scheme: dark;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    --bg: #050a08;
    --panel: #08130e;
    --surface: #0e1b16;
    --surface-hover: #14261e;
    --line: rgba(255, 255, 255, 0.1);
    --green: #41e991;
    --text: #f4f8f6;
    --muted: #91a29a;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
    box-sizing: border-box;
}

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

body {
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 15%, rgba(35, 154, 93, 0.14), transparent 32rem),
        radial-gradient(circle at 85% 85%, rgba(65, 233, 145, 0.07), transparent 30rem),
        var(--bg);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.app-shell {
    min-height: 100vh;
}

.login-view {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(420px, 0.95fr);
}

.brand-panel {
    position: relative;
    min-height: 100vh;
    padding: clamp(2rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--line);
    background:
        linear-gradient(145deg, rgba(65, 233, 145, 0.08), transparent 48%),
        repeating-linear-gradient(
            135deg,
            transparent 0,
            transparent 42px,
            rgba(255, 255, 255, 0.018) 43px,
            transparent 44px
        ),
        var(--panel);
}

.brand-panel::after {
    content: "";
    position: absolute;
    width: 28rem;
    height: 28rem;
    right: -15rem;
    bottom: -12rem;
    border: 1px solid rgba(65, 233, 145, 0.2);
    border-radius: 50%;
    box-shadow:
        0 0 0 4rem rgba(65, 233, 145, 0.025),
        0 0 0 9rem rgba(65, 233, 145, 0.018);
}

.brand-mark,
.mobile-mark,
.dashboard-mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    color: #041008;
    background: var(--green);
    font-weight: 900;
}

.brand-mark {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 1.1rem;
    font-size: 2rem;
}

.brand-copy {
    position: absolute;
    top: clamp(2.35rem, 5.4vw, 5.35rem);
    left: clamp(6.75rem, 11vw, 11rem);
    display: flex;
    flex-direction: column;
    letter-spacing: 0.18em;
}

.brand-name {
    font-weight: 800;
}

.brand-product {
    margin-top: 0.15rem;
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 700;
}

.brand-message {
    position: relative;
    z-index: 1;
    max-width: 42rem;
    margin: auto 0;
}

.eyebrow {
    margin: 0 0 1.25rem;
    color: var(--green);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.brand-message h1 {
    max-width: 11ch;
    margin: 0;
    font-size: clamp(3rem, 6vw, 6.5rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}

.brand-description {
    max-width: 35rem;
    margin: 2rem 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.65;
}

.system-status {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.status-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 1rem rgba(65, 233, 145, 0.8);
}

.login-panel {
    min-height: 100vh;
    padding: 2rem;
    display: grid;
    place-items: center;
}

.login-card {
    width: min(100%, 27rem);
    padding: clamp(1.8rem, 4vw, 3rem);
    border: 1px solid var(--line);
    border-radius: 1.75rem;
    background: rgba(14, 27, 22, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.mobile-brand {
    display: none;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 2rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.mobile-mark,
.dashboard-mark {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 0.75rem;
}

.login-heading {
    margin-bottom: 2rem;
}

.login-heading .eyebrow {
    margin-bottom: 0.8rem;
}

.login-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 2.8rem);
    letter-spacing: -0.045em;
}

.login-heading > p:last-child {
    margin: 0.75rem 0 0;
    color: var(--muted);
    line-height: 1.5;
}

.field {
    display: grid;
    gap: 0.6rem;
    margin-top: 1.25rem;
    color: #cbd6d1;
    font-size: 0.9rem;
    font-weight: 650;
}

.field input {
    width: 100%;
    height: 3.5rem;
    padding: 0 1rem;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    outline: none;
    background: rgba(3, 9, 6, 0.62);
}

.field input:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(65, 233, 145, 0.12);
}

.password-wrap {
    position: relative;
    display: block;
}

.password-wrap input {
    padding-right: 6rem;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    transform: translateY(-50%);
    padding: 0.5rem;
    color: var(--green);
    border: 0;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 750;
}

.form-error {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    color: #ffd4d4;
    border: 1px solid rgba(255, 125, 125, 0.28);
    border-radius: 0.8rem;
    background: rgba(120, 20, 20, 0.18);
    font-size: 0.88rem;
}

.primary-button,
.secondary-button {
    border-radius: 0.9rem;
    font-weight: 800;
}

.primary-button {
    width: 100%;
    min-height: 3.35rem;
    margin-top: 1.5rem;
    padding: 0 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #041008;
    border: 0;
    background: var(--green);
}

.primary-button:hover {
    background: #69f2a8;
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.support-note {
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

.dashboard-view {
    min-height: 100vh;
}

.dashboard-header {
    min-height: 5rem;
    padding: 1rem clamp(1.25rem, 4vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 10, 8, 0.88);
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.account {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: right;
}

.account div {
    display: grid;
    gap: 0.2rem;
}

.account strong {
    font-size: 0.9rem;
}

.account span {
    color: var(--muted);
    font-size: 0.75rem;
}

.secondary-button {
    min-height: 2.65rem;
    padding: 0 1rem;
    color: var(--text);
    border: 1px solid var(--line);
    background: var(--surface);
}

.secondary-button:hover {
    background: var(--surface-hover);
}

.dashboard-content {
    width: min(100% - 2.5rem, 84rem);
    margin: 0 auto;
    padding: clamp(3rem, 7vw, 7rem) 0;
}

.dashboard-content > h1 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: -0.06em;
}

.dashboard-description {
    max-width: 42rem;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.module-grid {
    margin-top: clamp(2.5rem, 5vw, 5rem);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.module-card {
    min-height: 15rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(65, 233, 145, 0.25);
    border-radius: 1.4rem;
    background:
        linear-gradient(145deg, rgba(65, 233, 145, 0.08), transparent 55%),
        var(--surface);
}

.module-card.muted {
    border-color: var(--line);
    background: var(--surface);
}

.module-index {
    color: var(--green);
    font-size: 0.75rem;
    font-weight: 800;
}

.module-card h2 {
    margin: 1.5rem 0 auto;
    font-size: 1.15rem;
}

.module-card strong {
    margin-top: 1.5rem;
    font-size: 2.6rem;
}

.module-card p {
    margin: 0.4rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

@media (max-width: 850px) {
    .login-view {
        grid-template-columns: 1fr;
    }

    .brand-panel {
        display: none;
    }

    .login-panel {
        padding: 1.25rem;
    }

    .mobile-brand {
        display: flex;
    }

    .module-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .login-card {
        padding: 1.4rem;
    }

    .dashboard-brand > span:last-child {
        display: none;
    }
}


.interactive-card {
    cursor: pointer;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background 160ms ease;
}

.interactive-card:hover,
.interactive-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--green);
    outline: none;
}

.companies-overlay {
    position: fixed;
    inset: 0;
    z-index: 20;
    padding: clamp(1rem, 3vw, 2.5rem);
    display: grid;
    place-items: center;
    background: rgba(2, 7, 4, 0.82);
    backdrop-filter: blur(14px);
}

.companies-panel {
    width: min(100%, 70rem);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 1.5rem;
    background: #09130f;
    box-shadow: var(--shadow);
}

.companies-header {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 1.4rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    background: rgba(9, 19, 15, 0.96);
}

.companies-header h2 {
    margin: 0;
    font-size: 1.6rem;
}

.icon-button {
    width: 2.8rem;
    height: 2.8rem;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 0.8rem;
    background: var(--surface);
    font-size: 1.4rem;
}

.companies-body {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: minmax(17rem, 0.7fr) minmax(20rem, 1.3fr);
    gap: 1.5rem;
}

.company-form,
.companies-list {
    padding: 1.4rem;
    border: 1px solid var(--line);
    border-radius: 1.1rem;
    background: var(--surface);
}

.company-form h3,
.companies-list h3 {
    margin: 0 0 1rem;
}

.company-form .primary-button {
    margin-top: 1.25rem;
}

.company-code-input {
    text-transform: uppercase;
}

.company-message {
    min-height: 1.4rem;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.company-message.error {
    color: #ff9b9b;
}

.company-message.success {
    color: var(--green);
}

.company-row {
    padding: 1rem 0;
    display: grid;
    grid-template-columns: 4rem 1fr auto;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
}

.company-row:last-child {
    border-bottom: 0;
}

.company-code {
    color: var(--green);
    font-weight: 850;
    letter-spacing: 0.08em;
}

.company-name {
    font-weight: 700;
}

.company-status {
    color: var(--muted);
    font-size: 0.8rem;
}

.empty-state {
    padding: 2rem 0;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 760px) {
    .companies-body {
        grid-template-columns: 1fr;
    }

    .company-row {
        grid-template-columns: 3.5rem 1fr;
    }

    .company-status {
        grid-column: 2;
    }
}


.company-name {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

.company-name strong {
    overflow-wrap: anywhere;
}

.company-name small {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.company-form select {
    width: 100%;
    min-height: 70px;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    outline: none;
    background: #06110d;
    color: var(--text);
    font: inherit;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.company-form select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(55, 229, 145, 0.12);
}

.company-form select option {
    background: #0b1914;
    color: var(--text);
}


.assets-panel {
    max-width: 1500px;
}

.asset-details {
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.015);
}

.asset-details summary {
    padding: 18px 20px;
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    user-select: none;
}

.asset-details[open] summary {
    border-bottom: 1px solid var(--border);
}

.asset-details-fields {
    display: grid;
    gap: 18px;
    padding: 20px;
}

.company-form textarea {
    width: 100%;
    min-height: 110px;
    padding: 16px 20px;
    resize: vertical;
    border: 1px solid var(--border);
    border-radius: 18px;
    outline: none;
    background: #06110d;
    color: var(--text);
    font: inherit;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.company-form textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(55, 229, 145, 0.12);
}

@media (min-width: 1250px) {
    .asset-details-fields {
        grid-template-columns: 1fr 1fr;
    }

    .asset-details-fields .field:last-child {
        grid-column: 1 / -1;
    }
}

/* =========================================================
   ASSET RENTAL V1
   ========================================================= */

.rc-asset-rental {
    display: grid;
    gap: 22px;
}

.rc-rental-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.rc-rental-header h2 {
    margin: 0 0 5px;
    font-size: 22px;
}

.rc-rental-header p {
    margin: 0;
    color: var(--muted, #667085);
}

.rc-rental-primary {
    border: 0;
    border-radius: 10px;
    padding: 10px 16px;
    background: #111827;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.rc-rental-primary:disabled {
    opacity: .55;
    cursor: default;
}

.rc-rental-message {
    min-height: 0;
    font-size: 14px;
}

.rc-rental-message.success {
    color: #067647;
}

.rc-rental-message.error,
.rc-rental-empty.error {
    color: #b42318;
}

.rc-rental-form {
    padding: 20px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #f9fafb;
}

.rc-rental-form-title,
.rc-rental-section-title {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 800;
}

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

.rc-rental-form-grid label,
.rc-rental-finish-form label {
    display: grid;
    gap: 7px;
}

.rc-rental-form-grid label > span,
.rc-rental-finish-form label > span {
    color: #475467;
    font-size: 13px;
    font-weight: 700;
}

.rc-rental-form input,
.rc-rental-form select,
.rc-rental-form textarea,
.rc-rental-finish-form input,
.rc-rental-finish-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    padding: 10px 11px;
    background: #fff;
    color: #101828;
    font: inherit;
}

.rc-rental-form textarea,
.rc-rental-finish-form textarea {
    resize: vertical;
}

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

.rc-rental-form-actions,
.rc-rental-finish-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

.rc-rental-form-actions > button:not(.rc-rental-primary),
.rc-rental-finish-actions > button:not(.rc-rental-primary),
.rc-rental-finish-toggle {
    border: 1px solid #d0d5dd;
    border-radius: 9px;
    padding: 9px 14px;
    background: #fff;
    color: #344054;
    font-weight: 700;
    cursor: pointer;
}

.rc-rental-history-section {
    display: grid;
    gap: 12px;
}

.rc-rental-card {
    margin-bottom: 14px;
    padding: 20px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fff;
}

.rc-rental-card.current {
    border-color: #b2ddff;
    background: #f5fbff;
}

.rc-rental-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.rc-rental-card-head h3 {
    margin: 7px 0 0;
    font-size: 18px;
}

.rc-rental-price {
    white-space: nowrap;
    font-size: 17px;
}

.rc-rental-status {
    display: inline-flex;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 800;
}

.rc-rental-status.active {
    background: #ecfdf3;
    color: #067647;
}

.rc-rental-status.completed {
    background: #f2f4f7;
    color: #475467;
}

.rc-rental-status.overdue {
    background: #fef3f2;
    color: #b42318;
}

.rc-rental-details {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.rc-rental-details > div {
    display: grid;
    gap: 4px;
}

.rc-rental-details span {
    color: #667085;
    font-size: 12px;
}

.rc-rental-details strong {
    font-size: 14px;
}

.rc-rental-details .overdue-text {
    color: #b42318;
}

.rc-rental-notes {
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid #eaecf0;
    white-space: pre-wrap;
    color: #475467;
    line-height: 1.5;
}

.rc-rental-finish {
    margin-top: 18px;
}

.rc-rental-finish-form {
    display: grid;
    grid-template-columns: minmax(180px, .6fr) 1.4fr;
    gap: 14px;
    margin-top: 14px;
    padding-top: 16px;
    border-top: 1px solid #eaecf0;
}

.rc-rental-finish-wide {
    min-width: 0;
}

.rc-rental-finish-actions {
    grid-column: 1 / -1;
    margin-top: 0;
}

.rc-rental-empty {
    padding: 22px;
    border: 1px dashed #d0d5dd;
    border-radius: 12px;
    color: #667085;
    text-align: center;
}

@media (max-width: 1050px) {
    .rc-rental-form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rc-rental-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .rc-rental-header,
    .rc-rental-card-head {
        flex-direction: column;
    }

    .rc-rental-form-grid,
    .rc-rental-details,
    .rc-rental-finish-form {
        grid-template-columns: 1fr;
    }

    .rc-rental-finish-actions {
        grid-column: auto;
    }

    .rc-rental-price {
        white-space: normal;
    }
}


/* =========================================================
   ASSET RENTAL V1 — DARK THEME OVERRIDE
   ========================================================= */

.rc-asset-rental {
    color: #f8fafc;
}

.rc-rental-header p {
    color: #8da2b8;
}

.rc-rental-form {
    border-color: #223243;
    background: #07131d;
}

.rc-rental-form-title,
.rc-rental-section-title {
    color: #f8fafc;
}

.rc-rental-form-grid label > span,
.rc-rental-finish-form label > span {
    color: #9db0c3;
}

.rc-rental-form input,
.rc-rental-form select,
.rc-rental-form textarea,
.rc-rental-finish-form input,
.rc-rental-finish-form textarea {
    border-color: #2a3b4c;
    background: #0b1823;
    color: #f8fafc;
}

.rc-rental-form input::placeholder,
.rc-rental-form textarea::placeholder,
.rc-rental-finish-form textarea::placeholder {
    color: #667b8f;
}

.rc-rental-primary {
    background: #132238;
    color: #ffffff;
    border: 1px solid #243a54;
}

.rc-rental-card {
    border-color: #223243;
    background: #07131d;
    color: #f8fafc;
}

.rc-rental-card.current {
    border-color: #254b68;
    background: #081722;
}

.rc-rental-card-head h3,
.rc-rental-price,
.rc-rental-details strong {
    color: #f8fafc;
}

.rc-rental-details span {
    color: #8297aa;
}

.rc-rental-notes {
    border-top-color: #223243;
    color: #c0ceda;
}

.rc-rental-finish-form {
    border-top-color: #223243;
}

.rc-rental-form-actions > button:not(.rc-rental-primary),
.rc-rental-finish-actions > button:not(.rc-rental-primary),
.rc-rental-finish-toggle {
    border-color: #2a3b4c;
    background: #0b1823;
    color: #e6edf3;
}

.rc-rental-empty {
    border-color: #415568;
    color: #7890a6;
}

.rc-rental-status.active {
    background: #0b3528;
    color: #5ee6a8;
}

.rc-rental-status.completed {
    background: #17232e;
    color: #aebdca;
}

.rc-rental-status.overdue {
    background: #3a1719;
    color: #ff8b8b;
}

.rc-rental-details .overdue-text {
    color: #ff8b8b;
}


/* =========================================================
   ASSET RENTAL EXTENSION V1
   ========================================================= */

.rc-rental-actions {
    margin-top: 18px;
}

.rc-rental-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.rc-rental-extend-toggle,
.rc-rental-finish-toggle {
    border: 1px solid #2a3b4c;
    border-radius: 9px;
    padding: 9px 14px;
    background: #0b1823;
    color: #e6edf3;
    font-weight: 700;
    cursor: pointer;
}

.rc-rental-extend-toggle {
    border-color: #315d7d;
    background: #0c2030;
    color: #8ed4ff;
}

.rc-rental-extend-form {
    margin-top: 14px;
    padding: 18px;
    border: 1px solid #254b68;
    border-radius: 12px;
    background: #081722;
}

.rc-rental-extend-form input,
.rc-rental-extend-form select,
.rc-rental-extend-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #2a3b4c;
    border-radius: 9px;
    padding: 10px 11px;
    background: #0b1823;
    color: #f8fafc;
    font: inherit;
}

.rc-rental-extend-form input:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.rc-rental-extend-form textarea {
    resize: vertical;
}


/* =========================================================
   ASSET RENTAL EXTENSION HISTORY V1
   ========================================================= */

.rc-rental-extension-history:not(:empty) {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #20303f;
}

.rc-rental-extension-title {
    margin-bottom: 10px;
    color: #f8fafc;
    font-weight: 800;
}

.rc-rental-extension-list {
    display: grid;
    gap: 8px;
}

.rc-rental-extension-item {
    padding: 11px 13px;
    border: 1px solid #22394b;
    border-radius: 10px;
    background: #07131d;
}

.rc-rental-extension-dates {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #dcecff;
}

.rc-rental-extension-dates span {
    color: #61b8ef;
}

.rc-rental-extension-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 6px;
    color: #8fa8bc;
    font-size: 12px;
}

.rc-rental-extension-note {
    margin-top: 7px;
    color: #c8d5df;
    font-size: 13px;
}

.rc-rental-extension-error {
    color: #ff8e8e;
    font-size: 13px;
}


/* =========================================================
   ASSET HISTORY V1
   ========================================================= */

.rc-asset-history {
    color: #f8fafc;
}

.rc-history-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.rc-history-header h2 {
    margin: 0 0 5px;
    font-size: 20px;
}

.rc-history-header p {
    margin: 0;
    color: #8da2b8;
}

.rc-history-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.rc-history-filters button {
    border: 1px solid #263849;
    border-radius: 999px;
    padding: 7px 13px;
    background: #091722;
    color: #9fb1c1;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
}

.rc-history-filters button:hover {
    border-color: #3d5b72;
    color: #e8f3fb;
}

.rc-history-filters button.active {
    border-color: #2378ad;
    background: #0c2940;
    color: #8fd5ff;
}

.rc-history-list {
    display: grid;
}

.rc-history-item {
    display: grid;
    grid-template-columns: 22px 150px minmax(0, 1fr);
    gap: 12px;
    min-height: 78px;
}

.rc-history-marker {
    position: relative;
    display: flex;
    justify-content: center;
}

.rc-history-dot {
    position: relative;
    z-index: 2;
    width: 10px;
    height: 10px;
    margin-top: 6px;
    border-radius: 50%;
    background: #7890a3;
    box-shadow: 0 0 0 4px #0a1823;
}

.rc-history-dot.rental {
    background: #47b4ff;
}

.rc-history-dot.repair {
    background: #f0a34a;
}

.rc-history-dot.issue {
    background: #ef6b73;
}

.rc-history-dot.document {
    background: #9d8cff;
}

.rc-history-dot.site {
    background: #50c990;
}

.rc-history-dot.terminal {
    background: #55d4d0;
}

.rc-history-line {
    position: absolute;
    top: 16px;
    bottom: -6px;
    width: 1px;
    background: #203240;
}

.rc-history-item:last-child .rc-history-line {
    display: none;
}

.rc-history-time {
    padding-top: 1px;
    color: #7f96a9;
    font-size: 12px;
    line-height: 1.45;
}

.rc-history-content {
    margin-bottom: 15px;
    padding: 0 0 17px;
    border-bottom: 1px solid #1c2c39;
}

.rc-history-item:last-child .rc-history-content {
    border-bottom: 0;
}

.rc-history-item-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 5px;
}

.rc-history-category {
    color: #829bad;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.rc-history-actor {
    color: #698295;
    font-size: 11px;
}

.rc-history-title {
    display: block;
    color: #f3f8fb;
    font-size: 14px;
}

.rc-history-description {
    margin-top: 5px;
    color: #a7b8c6;
    font-size: 13px;
    line-height: 1.45;
}

.rc-history-empty {
    padding: 28px;
    border: 1px dashed #273a49;
    border-radius: 12px;
    color: #8197a8;
    text-align: center;
}

.rc-history-empty.error {
    color: #ff8e8e;
}

@media (max-width: 760px) {
    .rc-history-item {
        grid-template-columns: 22px minmax(0, 1fr);
    }

    .rc-history-time {
        grid-column: 2;
        margin-bottom: 3px;
    }

    .rc-history-content {
        grid-column: 2;
    }

    .rc-history-marker {
        grid-row: 1 / span 2;
    }
}


/* =========================================================
   ASSET NFC V1
   ========================================================= */

.rc-asset-nfc {
    color: #f4f8fb;
}

.rc-nfc-header {
    margin-bottom: 20px;
}

.rc-nfc-header h2 {
    margin: 0 0 5px;
    font-size: 20px;
}

.rc-nfc-header p {
    margin: 0;
    color: #8499aa;
}

.rc-nfc-message {
    margin-bottom: 16px;
    padding: 11px 14px;
    border: 1px solid #285f4b;
    border-radius: 10px;
    background: #0c2a21;
    color: #80ddb4;
}

.rc-nfc-message.error {
    border-color: #66343b;
    background: #2b1519;
    color: #ff929b;
}

.rc-nfc-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(320px, .85fr);
    gap: 16px;
    align-items: stretch;
}

.rc-nfc-panel,
.rc-nfc-history-panel {
    border: 1px solid #203341;
    border-radius: 14px;
    background: #0a1721;
    padding: 18px;
}

.rc-nfc-history-panel {
    margin-top: 16px;
}

.rc-nfc-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 17px;
}

.rc-nfc-panel-head h3 {
    margin: 3px 0 0;
    font-size: 17px;
}

.rc-nfc-eyebrow {
    color: #6e8799;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rc-nfc-current-card dl {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 15px 0 18px;
}

.rc-nfc-current-card dl div {
    padding: 12px;
    border: 1px solid #1c303e;
    border-radius: 10px;
    background: #08131c;
}

.rc-nfc-current-card dt {
    margin-bottom: 5px;
    color: #70889a;
    font-size: 11px;
}

.rc-nfc-current-card dd {
    margin: 0;
    color: #edf6fb;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.rc-nfc-uid {
    font-family: monospace;
    letter-spacing: .05em;
}

.rc-nfc-status,
.rc-nfc-history-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.rc-nfc-status.active,
.rc-nfc-history-status.active {
    border: 1px solid #275e4b;
    background: #0b2c21;
    color: #73d8ad;
}

.rc-nfc-history-status.retired {
    border: 1px solid #3b4852;
    background: #18212a;
    color: #8999a6;
}

.rc-nfc-form {
    display: grid;
    gap: 14px;
}

.rc-nfc-form label {
    display: grid;
    gap: 6px;
}

.rc-nfc-form label > span {
    color: #aebdca;
    font-size: 12px;
    font-weight: 700;
}

.rc-nfc-form input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #263c4c;
    border-radius: 9px;
    padding: 10px 11px;
    outline: none;
    background: #07131c;
    color: #eef7fc;
    font: inherit;
}

.rc-nfc-form input:focus {
    border-color: #277cad;
}

.rc-nfc-form small {
    color: #60798b;
    font-size: 10px;
    line-height: 1.4;
}

.rc-nfc-primary,
.rc-nfc-danger {
    border-radius: 9px;
    padding: 10px 14px;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.rc-nfc-primary {
    border: 1px solid #237ab0;
    background: #11679b;
    color: #fff;
}

.rc-nfc-danger {
    border: 1px solid #61343b;
    background: #29161a;
    color: #ff9aa1;
}

.rc-nfc-primary:disabled,
.rc-nfc-danger:disabled {
    opacity: .5;
    cursor: default;
}

.rc-nfc-empty,
.rc-nfc-loading {
    padding: 24px 16px;
    border: 1px dashed #273b49;
    border-radius: 10px;
    color: #758c9d;
    text-align: center;
}

.rc-nfc-empty {
    display: grid;
    gap: 5px;
}

.rc-nfc-empty strong {
    color: #c8d5de;
}

.rc-nfc-empty.error {
    color: #ff929b;
}

.rc-nfc-history {
    display: grid;
}

.rc-nfc-history-row {
    display: grid;
    grid-template-columns:
        90px
        minmax(150px, 1.2fr)
        minmax(100px, .8fr)
        minmax(150px, 1fr)
        minmax(130px, 1fr);
    gap: 14px;
    align-items: center;
    padding: 13px 4px;
    border-bottom: 1px solid #1b2b37;
}

.rc-nfc-history-row:last-child {
    border-bottom: 0;
}

.rc-nfc-history-row > div:not(:first-child) {
    display: grid;
    gap: 3px;
}

.rc-nfc-history-row span:not(
    .rc-nfc-history-status
) {
    color: #687f90;
    font-size: 10px;
}

.rc-nfc-history-row strong {
    color: #dce8ef;
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .rc-nfc-grid {
        grid-template-columns: 1fr;
    }

    .rc-nfc-history-row {
        grid-template-columns: 1fr 1fr;
    }
}


/* =========================================================
   ASSET QR V1
   ========================================================= */

.rc-qr-panel {
    margin-bottom: 16px;
    border: 1px solid #203341;
    border-radius: 14px;
    background: #0a1721;
    padding: 18px;
}

.rc-asset-qr-loading {
    padding: 28px 16px;
    border: 1px dashed #273b49;
    border-radius: 10px;
    color: #758c9d;
    text-align: center;
}

.rc-asset-qr-loading.error {
    color: #ff929b;
}

.rc-qr-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    align-items: center;
}

.rc-qr-code-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
    padding: 15px;
    border-radius: 14px;
    background: #fff;
}

#rc-qr-code {
    display: flex;
    align-items: center;
    justify-content: center;
}

#rc-qr-code img,
#rc-qr-code canvas {
    display: block;
    max-width: 220px;
    height: auto;
}

.rc-qr-details {
    min-width: 0;
}

.rc-qr-label {
    display: block;
    margin-bottom: 5px;
    color: #70889a;
    font-size: 11px;
}

.rc-qr-inventory {
    display: block;
    color: #f1f8fc;
    font-size: 26px;
    line-height: 1.2;
}

.rc-qr-details p {
    max-width: 520px;
    margin: 10px 0 16px;
    color: #8197a7;
    font-size: 12px;
    line-height: 1.5;
}

.rc-qr-url {
    max-width: 620px;
    box-sizing: border-box;
    margin-bottom: 16px;
    padding: 10px 12px;
    border: 1px solid #1e3342;
    border-radius: 8px;
    background: #07131c;
    color: #7690a2;
    font-family: monospace;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.rc-qr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.rc-qr-secondary {
    border: 1px solid #304858;
    border-radius: 9px;
    padding: 10px 14px;
    background: #101f2a;
    color: #dce9f1;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 760px) {
    .rc-qr-layout {
        grid-template-columns: 1fr;
    }

    .rc-qr-code-wrap {
        max-width: 280px;
    }
}

