:root {
    font-family: Segoe UI, Arial, sans-serif;
    color: #1d3045;
    background: #f3f6fa
}

* {
    box-sizing: border-box
}

body {
    margin: 0
}

button,
input,
select {
    font: inherit
}

button {
    cursor: pointer
}

.app {
    display: flex;
    min-height: 100vh
}

.sidebar {
    width: 252px;
    background: #17314f;
    color: #e8f0fa;
    padding: 22px 13px;
    flex-shrink: 0
}

.brand {
    padding: 6px 12px 28px;
    border-bottom: 1px solid #38516d;
    margin-bottom: 22px
}

.brand strong {
    font-size: 26px;
    letter-spacing: .2px
}

.brand small {
    display: block;
    color: #a9c0d9;
    margin-top: 4px
}

.nav {
    display: block;
    width: 100%;
    text-align: left;
    padding: 13px 15px;
    background: none;
    color: #d5e2f0;
    border: 0;
    border-radius: 9px;
    margin: 3px 0
}

.nav:hover,
.nav.active {
    background: #355778;
    color: white
}

.nav span {
    display: inline-block;
    width: 25px
}

.main {
    flex: 1;
    min-width: 0
}

.top {
    height: 76px;
    background: white;
    border-bottom: 1px solid #dfe6ee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px
}

.top .operator {
    font-size: 13px;
    color: #61768a
}

.content {
    padding: 32px 36px;
    max-width: 1450px;
    margin: auto
}

.heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px
}

h1 {
    font-size: 27px;
    margin: 0 0 6px
}

h2 {
    font-size: 18px;
    margin: 0 0 17px
}

.muted {
    color: #728398;
    font-size: 14px;
    margin: 0
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 17px;
    margin-bottom: 25px
}

.card,
.panel {
    background: #fff;
    border: 1px solid #e0e7ef;
    border-radius: 12px;
    box-shadow: 0 2px 8px #142f4d08
}

.card {
    padding: 22px
}

.card b {
    display: block;
    font-size: 30px;
    margin: 12px 0 4px;
    color: #17314f
}

.card .caption {
    font-size: 13px;
    color: #6c8094
}

.panel {
    padding: 23px;
    margin-bottom: 20px
}

.btn {
    border: 0;
    background: #1d507e;
    color: white;
    border-radius: 8px;
    padding: 11px 16px;
    font-weight: 600
}

.btn.secondary {
    background: #e9f0f7;
    color: #254869
}

.btn.ghost {
    background: white;
    border: 1px solid #ccd9e6;
    color: #244561
}

.btn:disabled {
    opacity: .5;
    cursor: not-allowed
}

.tablewrap {
    overflow: auto
}

table {
    border-collapse: collapse;
    width: 100%;
    text-align: left
}

th {
    font-size: 12px;
    color: #718397;
    background: #f6f8fb;
    text-transform: uppercase;
    letter-spacing: .04em
}

th,
td {
    padding: 15px 12px;
    border-bottom: 1px solid #e9edf3
}

td {
    font-size: 14px
}

tr:last-child td {
    border-bottom: 0
}

.tag {
    border-radius: 30px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 600;
    background: #e9f6ef;
    color: #287247
}

.tag.gray {
    background: #edf1f5;
    color: #627488
}

.tag.orange {
    background: #fff0dc;
    color: #9b5b00
}

.tag.blue {
    background: #e3f2fd;
    color: #1565c0
}

.link {
    border: 0;
    background: none;
    color: #1d5689;
    font-weight: 600;
    padding: 5px
}

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

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #38516a
}

.field input,
.field select {
    border: 1px solid #cbd7e3;
    border-radius: 8px;
    padding: 12px;
    color: #263e55;
    background: white;
    width: 100%
}

.field.wide {
    grid-column: 1/-1
}

.formactions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 23px
}

.hint {
    font-size: 13px;
    color: #718398;
    margin: 12px 0
}

.hidden {
    display: none !important
}

.switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid #e9eef3
}

.switch:last-child {
    border: 0
}

.switch input {
    width: 19px;
    height: 19px;
    accent-color: #215b8e
}

.price {
    font-size: 25px;
    font-weight: 700;
    color: #183957
}

.two {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px
}

.breadcrumb {
    color: #65809a;
    font-size: 13px;
    margin-bottom: 18px
}

.notice {
    background: #eaf3fc;
    border: 1px solid #cddff1;
    border-radius: 9px;
    padding: 12px 16px;
    color: #2b5478;
    font-size: 13px;
    margin-bottom: 22px
}

.empty {
    padding: 30px;
    text-align: center;
    color: #728398
}

.foot {
    margin-top: 35px;
    color: #8494a6;
    font-size: 12px
}

.pill {
    display: inline-block;
    background: #eaf1f8;
    color: #2b557c;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 12px
}

@media(max-width:1000px) {
    .cards {
        grid-template-columns: repeat(2, 1fr)
    }

    .two {
        grid-template-columns: 1fr
    }

    .sidebar {
        width: 210px
    }
}

@media(max-width:700px) {
    .app {
        display: block
    }

    .sidebar {
        width: 100%;
        padding: 10px
    }

    .brand {
        padding: 8px;
        margin-bottom: 6px
    }

    .brand strong {
        font-size: 21px
    }

    .nav {
        display: inline-block;
        width: auto;
        padding: 9px;
        font-size: 12px
    }

    .nav span {
        display: none
    }

    .top {
        height: 60px;
        padding: 0 16px
    }

    .content {
        padding: 18px
    }

    .cards {
        gap: 9px
    }

    .card {
        padding: 15px
    }

    .card b {
        font-size: 23px
    }

    .formgrid {
        grid-template-columns: 1fr
    }

    .heading {
        align-items: flex-start;
        flex-direction: column
    }
}

[hidden] {
    display: none !important
}

.login-wrap {
    max-width: 460px;
    margin: 10vh auto;
    padding: 20px
}

.error {
    color: #b42318
}

.success {
    color: #17623a
}

.field input[type=checkbox] {
    width: auto
}

.formgrid select {
    padding: 10px;
    border: 1px solid #dbe4ed;
    border-radius: 8px
}

.formgrid {
    margin-bottom: 18px
}

.tag.gray {
    white-space: normal
}

/* DriveOver: original desktop palette, typography and blue/orange branding. */
:root {
    --navy: #0e2747;
    --card: #1b3f6b;
    --orange: #f28c28;
    --blue: #8db4e0;
    --text: #f2f6fc;
    --muted: #b7cbe2;
    --line: #8db4e040;
    color: var(--text);
    background: var(--navy);
    color-scheme: dark;
    font-size: 15px;
    line-height: 1.5
}

body {
    background: radial-gradient(circle at 15% 0, #153863 0, #0e2747 55%, #091729 100%);
    background-attachment: fixed
}

.sidebar {
    width: 252px;
    background: #091d35;
    border-right: 1px solid var(--line);
    padding: 28px 14px
}

.brand {
    padding: 0 14px 24px;
    border-color: var(--line)
}

.brand img {
    display: block;
    width: 130px;
    height: 92px;
    object-fit: contain
}

.brand small {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .5px;
    margin-top: 12px
}

.nav {
    color: #c8d9ec;
    border: 1px solid transparent;
    min-height: 44px;
    margin: 5px 0;
    padding: 11px 14px;
    font-weight: 500
}

.nav:hover {
    background: #1b3f6b80
}

.nav.active {
    background: #1b3f6b;
    border-color: #8db4e038;
    border-left: 3px solid var(--orange);
    color: white
}

.nav span {
    color: var(--blue)
}

.nav.active span {
    color: var(--orange)
}

.top {
    min-height: 78px;
    height: auto;
    padding: 18px 32px;
    background: #0b213be6;
    border-color: var(--line);
    gap: 18px;
    flex-wrap: wrap
}

.top strong {
    color: var(--blue)
}

.top .operator {
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.content {
    padding: 32px;
    max-width: 1500px
}

.heading {
    margin-bottom: 28px
}

.heading h1 {
    font-size: 28px;
    font-weight: 650;
    letter-spacing: -.7px
}

.muted,
.hint,
.foot,
.card .caption {
    color: var(--muted)
}

.muted {
    line-height: 1.6
}

.heading .muted {
    max-width: 700px
}

.panel,
.card {
    background: linear-gradient(130deg, #1b3f6bc9, #123053e6);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 24px -4px #0004
}

.panel {
    padding: 26px
}

.card {
    padding: 24px;
    border-top: 2px solid #8db4e075
}

.card b,
.price {
    color: var(--text)
}

.card b {
    font-size: 31px;
    font-variant-numeric: tabular-nums
}

.card:last-child {
    border-top-color: var(--orange)
}

.btn {
    background: var(--orange);
    color: #10243b;
    border: 1px solid transparent;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 7px;
    font-weight: 650;
    transition: background .15s, border-color .15s
}

.btn:hover {
    background: #ffac56
}

.btn.secondary {
    background: #8db4e01a;
    color: #deebfa;
    border-color: #8db4e04d
}

.btn.secondary:hover {
    background: #8db4e033;
    border-color: var(--blue)
}

.btn.ghost {
    background: transparent;
    color: #deebfa;
    border-color: #8db4e04d
}

.btn.ghost:hover {
    background: #1b3f6b
}

.btn:focus-visible,
.nav:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px
}

.notice {
    background: #102f50;
    border-color: #8db4e040;
    border-left: 3px solid var(--orange);
    color: #c9dcef;
    border-radius: 8px;
    line-height: 1.6;
    padding: 14px 18px
}

.foot {
    font-size: 12px;
    border-top: 1px solid var(--line);
    padding-top: 20px
}

table {
    font-variant-numeric: tabular-nums
}

th {
    background: #0b2441;
    color: var(--blue);
    font-size: 11px;
    letter-spacing: .06em
}

th,
td {
    border-color: #8db4e026;
    padding: 16px 13px
}

td {
    color: #e0eaf7;
    font-size: 14px
}

tbody tr:hover {
    background: #8db4e008
}

td .btn {
    margin: 3px 4px 3px 0;
    white-space: nowrap
}

td strong {
    color: white
}

.tablewrap {
    border: 1px solid #8db4e026;
    border-radius: 8px
}

td pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-width: 600px;
    font-size: 12px
}

summary {
    cursor: pointer;
    color: var(--blue)
}

.field {
    color: #d1e1f4;
    font-size: 13px;
    gap: 8px
}

.field input,
.field select,
.formgrid select {
    background: #0a223d;
    color: white;
    border: 1px solid #8db4e066;
    padding: 12px;
    border-radius: 7px;
    min-height: 45px
}

.field input:focus,
.field select:focus {
    outline: 2px solid var(--orange);
    outline-offset: 2px
}

.switch {
    border-color: var(--line)
}

.switch input {
    accent-color: var(--orange)
}

.hint {
    line-height: 1.65
}

.tag {
    background: #173f39;
    color: #abebcf;
    display: inline-block
}

.tag.gray {
    background: #253d56;
    color: #ccd8e7
}

.error {
    color: #ffb5ad
}

.success {
    color: #a4e6bf
}

.price-caption {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-top: 3px
}

.price-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px
}

.price-cards .panel {
    border-top: 3px solid var(--orange);
    min-width: 0
}

.price-cards h2 {
    margin: 16px 0 8px;
    font-size: 19px
}

.price {
    font-size: 32px;
    margin: 10px 0;
    font-variant-numeric: tabular-nums
}

.eyebrow {
    color: var(--blue);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px
}

.price-panel {
    max-width: 750px
}

.login-wrap {
    max-width: 500px;
    margin: 6vh auto
}

.login-wrap .panel {
    padding: 34px
}

.login-brand {
    margin-bottom: 26px
}

.login-brand img {
    display: block;
    width: 150px;
    height: 106px;
    object-fit: contain
}

.login-brand .eyebrow {
    margin: 14px 0 0
}

.login-wrap h1 {
    font-size: 25px;
    letter-spacing: -.5px
}

.login-wrap .muted {
    margin-bottom: 24px
}

.login-wrap .field {
    margin-top: 17px
}

.login-wrap [type=submit] {
    width: 100%;
    margin-top: 10px
}

.login-wrap .hint {
    font-size: 12px;
    margin-top: 22px
}

@media(max-width:1100px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .price-cards {
        grid-template-columns: 1fr
    }

    .sidebar {
        width: 220px
    }

    .content {
        padding: 24px
    }
}

@media(max-width:700px) {
    .sidebar {
        width: 100%;
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line)
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 18px;
        padding: 0 0 14px;
        margin-bottom: 10px
    }

    .brand img {
        width: 95px;
        height: 67px
    }

    .brand small {
        margin-top: 0
    }

    #nav {
        display: flex;
        gap: 5px;
        overflow-x: auto;
        padding: 3px 0 8px
    }

    .nav {
        flex: 0 0 auto;
        min-height: 42px;
        margin: 0;
        padding: 9px 12px
    }

    .nav.active {
        border-left: 1px solid #8db4e038;
        border-bottom: 2px solid var(--orange)
    }

    .top {
        padding: 14px 18px;
        gap: 12px
    }

    .top .operator {
        width: 100%;
        font-size: 12px;
        gap: 8px
    }

    .operator .btn {
        padding: 8px 12px;
        min-height: 38px
    }

    .content {
        padding: 20px 16px
    }

    .heading h1 {
        font-size: 25px
    }

    .panel {
        padding: 18px
    }

    .cards {
        gap: 12px
    }

    .card {
        padding: 18px;
        min-width: 0
    }

    .card b {
        font-size: 26px
    }

    .card .caption {
        font-size: 12px
    }

    .login-wrap {
        margin: 3vh auto
    }

    .login-wrap .panel {
        padding: 26px
    }

    .formactions {
        flex-wrap: wrap
    }

    .notice {
        font-size: 12px
    }

    th,
    td {
        padding: 12px 10px
    }
}

@media(max-width:380px) {
    .cards {
        grid-template-columns: 1fr
    }

    .top>div:first-child {
        font-size: 13px
    }

    .login-wrap {
        padding: 14px
    }

    .login-wrap .panel {
        padding: 22px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        transition: none !important
    }
}

.invoice-choice {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    cursor: pointer
}

.invoice-choice input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    accent-color: var(--orange)
}

.invoice-choice span {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere
}

.invoice-choice b {
    white-space: nowrap;
    font-variant-numeric: tabular-nums
}

.invoice-choice:has(input:disabled) {
    opacity: .6;
    cursor: default
}

.invoice-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px
}

.invoice-summary p {
    font-size: 14px;
    line-height: 1.7
}

.invoice-summary .price {
    font-size: 30px
}

.tag.orange {
    background: #523817;
    color: #ffd59d
}

#invoiceActionFields {
    gap: 18px
}

tfoot td {
    background: #0b2441
}

.invoice-summary h2 {
    overflow-wrap: anywhere
}

@media(max-width:700px) {
    .invoice-summary {
        grid-template-columns: 1fr;
        gap: 15px
    }

    .invoice-choice {
        gap: 10px;
        flex-wrap: wrap
    }

    .invoice-choice b {
        margin-left: 30px;
        font-size: 14px
    }
}

.tag.green {
    background: #173f39;
    color: #abebcf
}

.tag.red {
    background: #5a2124;
    color: #ffc2c2
}

.dialog-backdrop {
    position: fixed;
    inset: 0;
    background: #000a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    padding: 16px
}

.dialog {
    background: #12305a;
    border: 1px solid var(--line);
    border-top: 3px solid var(--orange);
    border-radius: 12px;
    padding: 24px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow: auto
}

.dialog h2 {
    margin-top: 0
}

.dialog ul {
    padding-left: 18px
}

td .tag {
    white-space: nowrap
}

.sub {
    display: block;
    color: #9fb6d3;
    font-size: 12px;
    margin-top: 2px;
    font-weight: 400
}

td.c-term {
    white-space: nowrap
}

td.c-act .acts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center
}

td.c-act .btn {
    margin: 0
}

td.c-status .sub {
    white-space: nowrap
}

td.c-status .tag {
    white-space: nowrap
}

@media(max-width:1100px) {

    td.c-term,
    td.c-status .sub {
        white-space: normal
    }

    td.c-status .tag {
        white-space: normal
    }

    th,
    td {
        padding: 10px 8px
    }

    td.c-act .btn {
        padding: 7px 9px;
        font-size: 12px
    }
}

@media(max-width:900px) {
    .tablewrap.lic {
        overflow: visible
    }

    .tablewrap.lic table,
    .tablewrap.lic tbody,
    .tablewrap.lic tr,
    .tablewrap.lic td {
        display: block;
        width: 100%;
        box-sizing: border-box
    }

    .tablewrap.lic thead {
        display: none
    }

    .tablewrap.lic tr {
        border-bottom: 1px solid #8db4e026;
        padding: 6px 0
    }

    .tablewrap.lic td {
        border: 0;
        padding: 5px 12px
    }
}

.invoice-site {
    margin: 18px 0 0;
    font-size: 15px;
    color: var(--blue)
}

.invoice-row {
    border-bottom: 1px solid var(--line)
}

.invoice-row .invoice-choice {
    border-bottom: 0;
    padding-bottom: 8px
}

.invoice-review {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: #ffd9a8;
    padding: 0 0 14px 35px
}

.invoice-review input {
    margin-top: 2px;
    accent-color: var(--orange)
}

.invoice-preview-site {
    padding: 8px 0;
    border-bottom: 1px solid var(--line)
}

tr.subtotal td {
    color: #9fb6d3;
    font-size: 13px;
    border-top: 0
}

tfoot td {
    border-top: 1px solid var(--line)
}

.contract-toolbar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(180px, 270px) auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 18px
}

.contract-toolbar .field {
    margin: 0
}

.contract-table {
    min-width: 1060px
}

.contract-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr);
    gap: 28px
}

.contract-summary h2,
.contract-number {
    overflow-wrap: anywhere
}

.contract-summary p {
    font-size: 14px;
    line-height: 1.7
}

.contract-number {
    color: var(--orange);
    font-size: 20px !important;
    font-weight: 650
}

.contract-lines {
    border-top: 1px solid var(--line);
    margin-top: 22px;
    padding-top: 18px
}

.contract-site {
    border: 1px solid var(--line);
    border-radius: 6px;
    margin: 10px 0;
    padding: 14px 16px
}

.contract-site legend {
    color: var(--blue);
    font-weight: 600;
    padding: 0 6px
}

.checkline {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    color: #d1e1f4;
    font-size: 13px
}

.checkline input {
    flex: 0 0 auto;
    margin-top: 4px;
    accent-color: var(--orange)
}

.contract-actions {
    margin: 18px 0
}

.contract-actions form {
    background: #102b49;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 18px
}

.contract-actions h2 {
    margin-bottom: 8px
}

@media(max-width:800px) {
    .contract-toolbar {
        grid-template-columns: 1fr
    }

    .contract-summary {
        grid-template-columns: 1fr;
        gap: 12px
    }
}

.offer-filters {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(180px, 1fr);
    gap: 16px;
    margin-bottom: 18px;
    max-width: 760px
}

.offer-table td {
    vertical-align: top
}

.offer-line {
    border: 1px solid var(--line);
    border-left: 3px solid var(--orange);
    border-radius: 8px;
    padding: 18px;
    margin: 12px 0;
    background: #0d2743
}

.offer-line-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    color: #fff
}

.offer-line-head .btn {
    min-height: 34px;
    padding: 6px 10px
}

.offer-line-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 12px 0 22px
}

.offer-discount {
    max-width: 760px
}

.offer-totals {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 20px;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    max-width: 760px;
    margin: 12px 0 22px
}

.offer-totals strong {
    color: #fff;
    font-size: 18px;
    font-variant-numeric: tabular-nums
}

.offer-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
    gap: 24px
}

.offer-summary p {
    line-height: 1.75
}

.offer-summary .price {
    font-size: 30px
}

.offer-summary h2 {
    overflow-wrap: anywhere
}

.offer-summary .formactions {
    justify-content: flex-start
}

.offer-interest-fields[hidden],
.offer-customer-field[hidden],
.offer-interest-field[hidden] {
    display: none
}

@media(max-width:700px) {
    .offer-filters {
        grid-template-columns: 1fr;
        gap: 8px
    }

    .offer-summary {
        grid-template-columns: 1fr;
        gap: 12px
    }

    .offer-line {
        padding: 14px
    }

    .offer-table {
        min-width: 780px
    }

    .offer-line-actions .btn {
        flex: 1 1 100%
    }
}