.modules-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 8%, rgba(37, 99, 235, 0.12), transparent 30%),
        radial-gradient(circle at 88% 18%, rgba(16, 185, 129, 0.12), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #ffffff 48%, #eefdf8 100%);
    color: var(--text);
}

.modules-status {
    border-bottom: 1px solid var(--line);
    background: rgba(248, 251, 255, 0.9);
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.modules-status .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 42px;
    overflow: hidden;
}

.modules-status-track {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.modules-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--emerald, #059669);
    box-shadow: 0 0 0 6px rgba(16, 163, 127, 0.1);
}

.modules-status a {
    color: var(--blue-600, #2563eb);
    text-decoration: none;
    white-space: nowrap;
}

.modules-shell {
    padding: 54px 0 42px;
}

.modules-app-intro {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) minmax(280px, 0.46fr);
    gap: 18px;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
    padding: 22px;
}

.modules-app-intro > .app-art {
    width: 64px;
    height: 64px;
}

.modules-app-intro span {
    color: var(--blue-600, #2563eb);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.modules-app-intro h1 {
    margin: 8px 0 8px;
    color: var(--text);
    font-size: 32px;
    line-height: 1.12;
    letter-spacing: 0;
}

.modules-app-intro p {
    max-width: 760px;
    margin: 0;
    color: #475569;
    font-size: 15px;
    line-height: 1.6;
}

.modules-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.modules-primary,
.modules-secondary,
.module-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    min-height: 48px;
    padding: 0 20px;
    font-weight: 950;
    text-decoration: none;
}

.modules-primary,
.module-open {
    border: 0;
    background: linear-gradient(135deg, var(--blue-600, #2563eb), var(--emerald, #059669));
    color: #fff;
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.2);
}

.modules-primary:hover,
.module-open:hover {
    color: #fff;
    transform: translateY(-1px);
}

.modules-secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
}

.modules-intro-panel,
.module-card,
.module-registry a,
.modules-flow article,
.modules-panel {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.modules-intro-panel {
    padding: 16px;
}

.modules-intro-panel h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

.modules-mini-list {
    display: grid;
    gap: 12px;
}

.modules-mini-list span {
    display: block;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: linear-gradient(135deg, #fff, #f8fbff);
    color: #475569;
    line-height: 1.55;
    padding: 14px;
}

.modules-mini-list strong {
    color: var(--text);
}

.modules-section {
    padding-top: 42px;
}

.modules-section.compact {
    padding-top: 28px;
}

.modules-section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 18px;
}

.modules-section-head span,
.modules-panel > span {
    color: var(--blue-600, #2563eb);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.modules-section-head h2,
.modules-panel h2 {
    margin: 8px 0 0;
    color: var(--text);
    font-size: clamp(30px, 3.7vw, 44px);
    line-height: 1.06;
}

.modules-section-head p,
.modules-panel p {
    max-width: 600px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

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

.module-app-store-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.module-app-tile,
.module-plan-grid article,
.module-tutorial-grid a {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.module-app-tile {
    position: relative;
    display: grid;
    min-height: 292px;
    gap: 10px;
    align-content: start;
    padding: 16px;
}

.module-app-tile.locked {
    opacity: 0.64;
}

.module-app-badge {
    width: fit-content;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--blue-600, #2563eb);
    font-size: 10px;
    font-weight: 950;
    padding: 5px 8px;
    text-transform: uppercase;
}

.module-app-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.module-app-top .app-art,
.module-tutorial-grid .app-art {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
}

.module-app-top small {
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    padding: 6px 9px;
}

.module-app-tile h3 {
    margin: 4px 0 0;
    color: var(--text);
    font-size: 20px;
    line-height: 1.15;
}

.module-app-tile p {
    margin: 0;
    color: #475569;
    font-size: 13px;
    line-height: 1.5;
}

.module-app-meta,
.module-app-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.module-app-meta {
    margin-top: auto;
}

.module-app-meta span {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.module-app-actions a,
.module-app-actions b {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 10px;
    color: inherit;
    font-size: 13px;
    font-weight: 950;
    text-align: center;
    text-decoration: none;
}

.module-app-actions a:first-child,
.module-app-actions b {
    border: 0;
    background: #0f172a;
    color: #fff;
}

.module-app-actions a:last-child {
    border: 1px solid #bfdbfe;
    background: #eff6ff;
    color: var(--blue-600, #2563eb);
}

.module-plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.module-plan-grid article {
    display: grid;
    gap: 9px;
    padding: 18px;
}

.module-plan-grid span {
    width: fit-content;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 950;
    padding: 6px 10px;
    text-transform: uppercase;
}

.module-plan-grid strong {
    color: var(--text);
    font-size: 24px;
    line-height: 1.1;
}

.module-plan-grid p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.module-card {
    display: flex;
    min-height: 380px;
    flex-direction: column;
    padding: 20px;
}

.module-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.module-card-top .app-art {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
}

.module-card-top span {
    border-radius: 999px;
    background: #eff6ff;
    color: var(--blue-600, #2563eb);
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 900;
}

.module-card h3 {
    margin: 20px 0 10px;
    font-size: 24px;
}

.module-card p {
    margin: 0;
    color: #475569;
    line-height: 1.65;
}

.module-count {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 18px;
}

.module-count strong {
    font-size: 36px;
    line-height: 1;
}

.module-count span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.module-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 20px;
}

.module-tags span {
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #f8fbff;
    color: #334155;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 850;
}

.module-open {
    margin-top: auto;
}

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

.module-registry a {
    display: grid;
    gap: 8px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
}

.module-registry span {
    color: #059669;
    font-size: 12px;
    font-weight: 950;
}

.module-registry strong {
    font-size: 20px;
}

.module-registry small {
    color: var(--muted);
    line-height: 1.55;
}

.modules-flow {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.modules-flow article {
    padding: 18px;
}

.modules-flow article > b {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: #fef3c7;
    color: #d97706;
}

.modules-flow .app-art {
    width: 54px;
    height: 54px;
}

.modules-flow h3 {
    margin: 18px 0 9px;
    font-size: 18px;
}

.modules-flow p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.module-tutorial-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.module-tutorial-grid a {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 10px 12px;
    align-items: center;
    min-height: 122px;
    padding: 16px;
    color: inherit;
    text-decoration: none;
}

.module-tutorial-grid a:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.module-tutorial-grid .app-art {
    grid-row: 1 / span 2;
}

.module-tutorial-grid strong {
    color: var(--text);
    font-size: 17px;
    line-height: 1.2;
}

.module-tutorial-grid small {
    color: #64748b;
    line-height: 1.45;
}

.modules-bottom-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.75fr);
    gap: 18px;
    padding-top: 42px;
}

.modules-panel {
    padding: 24px;
}

.modules-panel.highlight {
    background: linear-gradient(135deg, #fff, #eff6ff 54%, #ecfdf5);
}

.modules-panel .modules-primary {
    margin-top: 22px;
}

.modules-roadmap {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.modules-roadmap div {
    border: 1px dashed #bfdbfe;
    border-radius: 16px;
    background: #f8fbff;
    padding: 15px;
}

.modules-roadmap strong {
    display: block;
    color: var(--text);
}

.modules-roadmap p {
    margin-top: 7px;
    font-size: 14px;
}

.invoicing-shell {
    padding-top: 28px;
}

.invoice-app-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
    padding: 12px;
}

.invoice-app-switch,
.invoice-app-action,
.invoice-app-bar nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-weight: 950;
    text-decoration: none;
}

.invoice-app-switch {
    gap: 10px;
    padding: 6px 10px;
}

.invoice-app-switch .app-art {
    width: 44px;
    height: 44px;
}

.invoice-app-bar nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
}

.invoice-app-bar nav a {
    min-height: 42px;
    border-radius: 12px;
    padding: 0 14px;
    color: #475569;
    white-space: nowrap;
}

.invoice-app-bar nav a.active,
.invoice-app-bar nav a:hover,
.invoice-app-switch.active {
    background: #eaf2ff;
    color: var(--blue-600, #2563eb);
}

.invoice-app-action {
    min-height: 42px;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    padding: 0 16px;
}

.invoice-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.54fr);
    gap: 24px;
    align-items: stretch;
    padding-top: 28px;
}

.invoice-page-heading {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
    margin-top: 28px;
    padding: clamp(24px, 4vw, 40px);
}

.invoice-page-heading span {
    color: var(--blue-600, #2563eb);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.invoice-page-heading h1 {
    max-width: 900px;
    margin: 10px 0 12px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
    letter-spacing: 0;
}

.invoice-page-heading p {
    max-width: 740px;
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
}

.invoice-hero-copy,
.invoice-preview-card,
.invoice-kpi-grid article,
.invoice-form-panel,
.invoice-main-panel,
.invoice-side-panel,
.invoice-table-panel,
.invoice-pipeline-panel {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.invoice-hero-copy {
    padding: clamp(24px, 4vw, 42px);
}

.invoice-hero-copy h1 {
    max-width: 860px;
    margin: 22px 0 16px;
    font-size: clamp(38px, 5.4vw, 68px);
    line-height: 0.98;
    letter-spacing: 0;
}

.invoice-hero-copy p {
    max-width: 760px;
    margin: 0;
    color: #475569;
    font-size: 18px;
    line-height: 1.75;
}

.invoice-preview-card {
    display: flex;
    min-height: 420px;
    flex-direction: column;
    padding: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.96) 54%, rgba(236, 253, 245, 0.94));
}

.invoice-preview-head,
.invoice-preview-footer,
.invoice-preview-lines span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.invoice-preview-head span,
.invoice-preview-total span,
.invoice-kpi-grid span,
.invoice-work-cards span,
.invoice-side-panel > span,
.invoice-pipeline-panel > span {
    color: var(--blue-600, #2563eb);
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.invoice-preview-head strong {
    display: block;
    margin-top: 5px;
    font-size: 22px;
}

.invoice-preview-head b,
.invoice-table td span {
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 950;
}

.invoice-preview-total {
    margin: 34px 0 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.28);
    border-bottom: 1px solid rgba(148, 163, 184, 0.28);
    padding: 22px 0;
}

.invoice-preview-total strong {
    display: block;
    margin-top: 8px;
    font-size: 38px;
    line-height: 1;
}

.invoice-preview-lines {
    display: grid;
    gap: 12px;
}

.invoice-preview-lines span {
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    color: #475569;
}

.invoice-preview-lines b {
    color: var(--text);
}

.invoice-preview-lines strong {
    color: var(--text);
}

.invoice-preview-footer {
    margin-top: auto;
    color: #64748b;
    font-size: 13px;
    font-weight: 850;
}

.invoice-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding-top: 18px;
}

.invoice-kpi-grid article {
    padding: 20px;
}

.invoice-kpi-grid strong {
    display: block;
    margin: 10px 0 6px;
    font-size: 38px;
    line-height: 1;
}

.invoice-kpi-grid small {
    color: #64748b;
    font-weight: 850;
}

.invoice-work-grid,
.invoice-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.42fr);
    gap: 18px;
}

.invoice-stack {
    display: grid;
    gap: 18px;
}

.invoicing-page section[id] {
    scroll-margin-top: 28px;
}

.invoice-form-panel,
.invoice-main-panel,
.invoice-side-panel,
.invoice-table-panel,
.invoice-pipeline-panel {
    padding: 24px;
}

.invoice-flash,
.invoice-empty {
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    background: #eff6ff;
    color: #1e3a8a;
    font-weight: 850;
    line-height: 1.55;
    padding: 14px 16px;
}

.invoice-flash {
    margin-bottom: 16px;
}

.invoice-flash.error {
    border-color: #fecaca;
    background: #fef2f2;
    color: #991b1b;
}

.invoice-flash.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.invoice-form {
    display: grid;
    gap: 16px;
}

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

.invoice-form label {
    display: grid;
    gap: 7px;
    color: #475569;
    font-size: 13px;
    font-weight: 950;
}

.invoice-form input,
.invoice-form select,
.invoice-form textarea,
.invoice-line-table input,
.invoice-line-table select,
.invoice-line-table output {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-weight: 800;
    min-height: 44px;
    padding: 10px 12px;
}

.invoice-line-table input[readonly] {
    background: #f8fafc;
    color: #334155;
}

.invoice-form textarea {
    resize: vertical;
}

.invoice-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.invoice-service-items {
    display: grid;
    gap: 14px;
}

.invoice-service-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.invoice-service-head h3,
.invoice-live-total h3 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
}

.invoice-service-head p,
.invoice-live-total p {
    margin: 4px 0 0;
    color: #64748b;
}

.invoice-service-head > div:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.invoice-preset-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.invoice-preset-row button,
.invoice-system-counts {
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 950;
    min-height: 38px;
    padding: 0 12px;
}

.invoice-system-counts {
    border-color: #99f6e4;
    color: #0f766e;
}

.invoice-line-table-wrap {
    overflow-x: auto;
}

.invoice-line-table {
    width: 100%;
    min-width: 1450px;
    border-collapse: collapse;
}

.invoice-line-table th,
.invoice-line-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 8px;
    text-align: left;
}

.invoice-line-table th {
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.invoice-line-table tfoot td {
    border-bottom: 0;
    color: #0f172a;
    font-weight: 950;
}

.invoice-line-table output {
    display: inline-flex;
    align-items: center;
    background: #ecfdf5;
    border-color: #bbf7d0;
    color: #047857;
    min-height: 44px;
}

.invoice-line-table small {
    display: block;
    color: #64748b;
    font-size: 11px;
    margin-top: 4px;
}

.invoice-line-table [data-line-source] {
    background: #f8fafc;
}

.invoice-line-table [data-line-variance] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 12px;
    font-weight: 950;
    min-height: 28px;
    min-width: 64px;
    padding: 0 10px;
}

.invoice-line-table [data-line-variance].ok {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.invoice-line-table [data-line-variance].warn {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.invoice-line-add,
.invoice-line-remove {
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 950;
    min-height: 38px;
    padding: 0 12px;
}

.invoice-line-add {
    justify-self: flex-start;
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #2563eb;
}

.invoice-line-remove {
    color: #b91c1c;
}

.invoice-live-total {
    display: grid;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
    padding-top: 16px;
}

.invoice-live-total > div {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.invoice-live-total article {
    display: grid;
    gap: 8px;
    align-content: center;
    border-bottom: 1px solid #e2e8f0;
    min-height: 58px;
    padding-bottom: 10px;
}

.invoice-live-total article span {
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.invoice-live-total article strong {
    color: #0f172a;
    font-size: 16px;
    font-weight: 950;
}

.invoice-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 260px;
}

.invoice-inline-form {
    display: inline-flex;
    margin: 0;
}

.invoice-row-actions a,
.invoice-row-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 950;
    min-height: 34px;
    padding: 0 10px;
    text-decoration: none;
}

.invoice-row-actions a:hover,
.invoice-row-actions button:hover {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: var(--blue-600, #2563eb);
}

.invoice-row-actions .invoice-danger,
.invoice-line-remove {
    border-color: #fecaca;
    color: #b91c1c;
}

.invoice-row-actions .invoice-danger:hover,
.invoice-line-remove:hover {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}

.invoice-work-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.invoice-work-cards article {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    border: 1px solid #dbeafe;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #f8fbff);
    padding: 16px;
}

.invoice-work-cards .app-art {
    width: 58px;
    height: 58px;
}

.invoice-work-cards h3 {
    margin: 6px 0 7px;
    font-size: 19px;
}

.invoice-work-cards p,
.invoice-check-list p,
.invoice-pipeline p {
    margin: 0;
    color: #64748b;
    line-height: 1.6;
}

.invoice-side-panel h2,
.invoice-pipeline-panel h2 {
    margin: 8px 0 18px;
    font-size: 28px;
}

.invoice-settings-panel {
    order: 2;
}

.invoice-check-list {
    display: grid;
    gap: 14px;
}

.invoice-check-list div {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
}

.invoice-check-list b {
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border-radius: 999px;
    background: linear-gradient(135deg, #2563eb, #059669);
}

.invoice-check-list strong {
    display: block;
    margin-bottom: 5px;
}

.invoice-table-wrap {
    overflow-x: auto;
}

.invoice-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.invoice-table th,
.invoice-table td {
    border-bottom: 1px solid #e2e8f0;
    padding: 14px 12px;
    text-align: left;
    vertical-align: middle;
}

.invoice-table th {
    color: #64748b;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.invoice-table td {
    color: #334155;
    font-weight: 800;
}

.invoice-table tr:last-child td {
    border-bottom: 0;
}

.invoice-pipeline {
    display: grid;
    gap: 12px;
}

.invoice-pipeline article {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #f8fbff;
    padding: 14px;
}

.invoice-pipeline article > strong {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 14px;
    background: #fff;
    color: var(--blue-600, #2563eb);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.invoice-pipeline h3 {
    margin: 0 0 5px;
    font-size: 17px;
}

.invoice-integrations .modules-flow article {
    min-height: 210px;
}

.invoice-customer-grid,
.invoice-payment-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.invoice-payment-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.invoice-customer-grid article,
.invoice-payment-grid article {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
    padding: 20px;
}

.invoice-customer-grid article > strong {
    display: grid;
    width: 64px;
    min-width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 18px;
    background: linear-gradient(135deg, #eff6ff, #ecfdf5);
    color: var(--blue-600, #2563eb);
    font-size: 19px;
    font-weight: 950;
}

.invoice-customer-grid h3,
.invoice-payment-grid h3 {
    margin: 18px 0 8px;
    font-size: 20px;
}

.invoice-customer-grid p,
.invoice-payment-grid p {
    margin: 0;
    color: #64748b;
    line-height: 1.62;
}

.invoice-payment-grid article > span {
    display: block;
    width: 40px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #059669);
}

.invoice-payment-grid article:nth-child(2) > span {
    background: linear-gradient(90deg, #f59e0b, #2563eb);
}

.invoice-payment-grid article:nth-child(3) > span {
    background: linear-gradient(90deg, #059669, #14b8a6);
}

.invoice-payment-grid article:nth-child(4) > span {
    background: linear-gradient(90deg, #ef4444, #f59e0b);
}

.transport-airsea-page {
    min-height: 100vh;
    background: #f4f7fb;
}

.transport-role-shell {
    min-height: 100vh;
}

.transport-role-sidebar .brand-mark {
    background: linear-gradient(135deg, #2563eb, #0f766e);
    color: #fff;
}

.transport-role-menu a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
}

.transport-role-main {
    min-width: 0;
}

.transport-role-main > .container {
    width: min(100%, 1480px);
    max-width: none;
    margin-right: auto;
    margin-left: auto;
}

.transport-role-hero {
    margin-bottom: 18px;
}

.transport-role-hero .button {
    white-space: nowrap;
}

.transport-dashboard-page {
    min-height: 100vh;
    overflow-x: hidden;
    color: #18233f;
}

.transport-dashboard-page .navbar {
    min-height: 78px;
}

.transport-dashboard-page .navbar-brand {
    text-decoration: none;
}

.transport-dashboard-page .page-content {
    width: min(100%, 1920px);
    margin: 0 auto;
    padding: 34px 38px 54px;
}

.transport-mounted-sidebar .brand a {
    min-width: 0;
}

.transport-mounted-sidebar .brand img {
    object-fit: contain;
}

.transport-mounted-menu a.is-active {
    color: #127ec7 !important;
    background: linear-gradient(135deg, rgba(56, 165, 234, 0.14), rgba(255, 255, 255, 0.9)) !important;
    box-shadow: inset 3px 0 0 #38a5ea, 0 12px 24px rgba(41, 73, 112, 0.08);
}

.transport-mounted-menu a.is-active i {
    color: #fff !important;
    background: linear-gradient(135deg, #38a5ea, #35c8ee);
    box-shadow: 0 12px 24px rgba(56, 165, 234, 0.22);
}

.transport-account-toggle {
    text-decoration: none;
}

.transport-account-label {
    max-width: 132px;
    overflow: hidden;
    color: #1f3146;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transport-dashboard-main > .container,
.transport-dashboard-main .transport-home-grid,
.transport-dashboard-main .role-page {
    width: min(100%, 1800px);
    max-width: none;
    margin-right: auto;
    margin-left: auto;
}

.transport-role-page {
    margin-bottom: 18px;
}

.transport-dash-metrics {
    margin-bottom: 22px !important;
}

.transport-home-grid {
    margin-bottom: 24px;
}

.transport-role-actions a {
    color: inherit;
    text-decoration: none;
}

.transport-action-button {
    position: relative;
    display: grid;
    min-height: 142px;
    overflow: hidden;
    border: 1px solid rgba(27, 49, 75, 0.08);
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff, #f8fcff);
    box-shadow: 0 14px 32px rgba(25, 48, 72, 0.06);
    padding: 18px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.transport-action-button::after {
    content: "";
    position: absolute;
    right: -22px;
    bottom: -26px;
    width: 96px;
    height: 96px;
    border-radius: 24px;
    background: color-mix(in srgb, var(--action-tone, #6f63ff) 14%, transparent);
    transform: rotate(16deg);
}

.transport-role-action:hover .transport-action-button,
.transport-role-action:focus .transport-action-button {
    border-color: color-mix(in srgb, var(--action-tone, #6f63ff) 30%, white);
    box-shadow: 0 18px 38px rgba(25, 48, 72, 0.1);
    transform: translateY(-2px);
}

.transport-action-button i,
.transport-action-button strong,
.transport-action-button small {
    position: relative;
    z-index: 1;
}

.transport-action-button i {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--action-tone, #6f63ff), color-mix(in srgb, var(--action-tone, #6f63ff) 72%, white));
    box-shadow: 0 14px 30px color-mix(in srgb, var(--action-tone, #6f63ff) 24%, transparent);
    font-size: 1.2rem;
}

.transport-action-button strong {
    margin-top: 18px;
    color: #18233f;
    font-size: 1rem;
    font-weight: 850;
}

.transport-action-button small {
    margin-top: 8px;
    color: #6e7a96;
    font-size: 0.92rem;
    line-height: 1.45;
}

.transport-role-action:nth-child(1) { --action-tone: #6f63ff; }
.transport-role-action:nth-child(2) { --action-tone: #20c997; }
.transport-role-action:nth-child(3) { --action-tone: #ffb33f; }
.transport-role-action:nth-child(4) { --action-tone: #35c8ee; }
.transport-role-action:nth-child(5) { --action-tone: #ff6f91; }
.transport-role-action:nth-child(6) { --action-tone: #45a2ff; }

.transport-task-forms-panel {
    width: min(100%, 1800px);
    max-width: none;
    margin: 0 auto 24px;
}

.transport-task-form-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.transport-task-form-card {
    position: relative;
    display: grid;
    min-height: 148px;
    overflow: hidden;
    border: 1px solid rgba(27, 49, 75, 0.08);
    border-radius: 22px;
    background: linear-gradient(145deg, #ffffff, #f8fcff);
    color: inherit;
    padding: 18px;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.transport-task-form-card::after {
    content: "";
    position: absolute;
    right: -22px;
    top: -24px;
    width: 88px;
    height: 88px;
    border-radius: 24px;
    background: rgba(56, 165, 234, 0.12);
    transform: rotate(16deg);
}

.transport-task-form-card:hover,
.transport-task-form-card:focus {
    border-color: rgba(56, 165, 234, 0.28);
    box-shadow: 0 18px 38px rgba(25, 48, 72, 0.1);
    color: inherit;
    transform: translateY(-2px);
}

.transport-task-form-card i,
.transport-task-form-card strong,
.transport-task-form-card p,
.transport-task-form-card span {
    position: relative;
    z-index: 1;
}

.transport-task-form-card i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #38a5ea, #35c8ee);
    color: #fff;
    box-shadow: 0 12px 24px rgba(56, 165, 234, 0.22);
}

.transport-task-form-card strong {
    margin-top: 14px;
    color: #18233f;
    font-size: 1rem;
    font-weight: 850;
}

.transport-task-form-card p {
    margin: 8px 0 12px;
    color: #6e7a96;
    font-size: 0.92rem;
    line-height: 1.45;
}

.transport-task-form-card span {
    width: fit-content;
    align-self: end;
    border-radius: 999px;
    background: rgba(24, 185, 105, 0.12);
    color: #087f5b;
    font-size: 0.78rem;
    font-weight: 850;
    padding: 6px 10px;
}

.transport-task-form-card.is-muted {
    opacity: 0.76;
}

.transport-task-form-card.is-muted span {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
}

.transport-task-form-card.is-muted i {
    background: linear-gradient(135deg, #94a3b8, #cbd5e1);
    box-shadow: none;
}

.transport-dashboard-page progress {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: #e9eef5;
}

.transport-dashboard-page progress::-webkit-progress-bar {
    background: #e9eef5;
}

.transport-dashboard-page progress::-webkit-progress-value {
    border-radius: 999px;
    background: linear-gradient(90deg, #6658f6, #25c7da, #18b969);
}

@media (max-width: 1100px) {
    .transport-dashboard-page .page-content {
        padding: 24px 18px 44px;
    }

    .transport-dashboard-page .portal-escape-links {
        display: none;
    }

    .transport-home-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 760px) {
    .transport-account-label,
    .transport-dashboard-page .navbar-brand::after {
        display: none;
    }

    .transport-task-form-grid {
        grid-template-columns: 1fr;
    }
}

.transport-app-bar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    border: 1px solid #dbe4ef;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
    padding: 14px 16px;
}

.transport-app-bar a {
    color: #334155;
    text-decoration: none;
}

.transport-app-switch {
    display: inline-grid;
    grid-template-columns: 44px auto;
    gap: 10px;
    align-items: center;
    border-radius: 14px;
    padding: 7px 10px;
    font-weight: 950;
}

.transport-app-switch .app-art {
    width: 44px;
    height: 44px;
}

.transport-app-switch.active,
.transport-app-bar nav a.active {
    background: #eef4ff;
    color: #2563eb;
}

.transport-app-bar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.transport-app-bar nav a,
.transport-app-action {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 12px;
    color: #334155;
    font-weight: 900;
    padding: 0 14px;
}

.transport-app-bar nav a:hover,
.transport-app-action:hover {
    border-color: #bfdbfe;
    background: #f8fafc;
    color: #2563eb;
}

.transport-app-action {
    border-color: #dbe4ef;
    background: #fff;
    white-space: nowrap;
}

.transport-start-panel {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    border: 1px solid #dbe4ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    padding: 26px;
}

.transport-start-panel h1 {
    max-width: 760px;
    margin: 6px 0 10px;
    color: #0f172a;
    font-size: clamp(32px, 4vw, 56px);
    line-height: 0.98;
}

.transport-start-panel p {
    max-width: 760px;
    margin: 0;
    color: #64748b;
    font-size: 16px;
}

.transport-start-panel > div:nth-child(2) > span {
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.transport-start-panel .modules-actions {
    margin-top: 18px;
}

.transport-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.transport-quick-actions a {
    display: grid;
    gap: 10px;
    min-height: 210px;
    color: inherit;
    padding: 18px;
    text-decoration: none;
}

.transport-quick-actions a:hover {
    border-color: #2563eb;
    box-shadow: 0 18px 44px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.transport-quick-actions span {
    width: fit-content;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
    padding: 5px 9px;
}

.transport-quick-actions strong {
    color: #0f172a;
    font-size: 20px;
}

.transport-quick-actions p {
    margin: 0;
    color: #64748b;
}

.transport-quick-actions em {
    align-self: end;
    color: #0f766e;
    font-style: normal;
    font-weight: 900;
}

.ftl-simple-shell {
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.6fr);
    gap: 18px;
    align-items: start;
}

.ftl-simple-card {
    border: 1px solid #dbe4ef;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.07);
    padding: 20px;
}

.ftl-card-title {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.ftl-card-title h2 {
    margin: 0;
    color: #0f172a;
    font-size: 20px;
}

.ftl-card-title span,
.ftl-shipment-list em {
    border-radius: 999px;
    background: #eef4ff;
    color: #2563eb;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    padding: 5px 9px;
    white-space: nowrap;
}

.ftl-post-card form {
    display: grid;
    gap: 13px;
}

.ftl-post-card label {
    display: grid;
    gap: 6px;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ftl-post-card input,
.ftl-post-card textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    padding: 10px 12px;
    font: inherit;
    text-transform: none;
}

.ftl-post-card textarea {
    resize: vertical;
}

.ftl-two-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ftl-post-card button,
.ftl-shipment-list button {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: #4f46e5;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 0 14px;
}

.ftl-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    padding: 18px;
}

.ftl-empty strong {
    color: #0f172a;
}

.ftl-empty p {
    margin: 6px 0 0;
    color: #64748b;
}

.ftl-shipment-list {
    display: grid;
    gap: 14px;
}

.ftl-shipment-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 14px;
}

.ftl-shipment-list article > p,
.ftl-shipment-list article > small,
.ftl-shipment-list article > form {
    grid-column: 1 / -1;
}

.ftl-shipment-list span {
    color: #4f46e5;
    font-size: 12px;
    font-weight: 900;
}

.ftl-shipment-list strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
}

.ftl-shipment-list p,
.ftl-shipment-list small {
    margin: 0;
    color: #64748b;
}

.transport-panel-grid,
.transport-trip-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.transport-trip-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.transport-panel-grid > a,
.transport-panel-grid > article,
.transport-trip-grid > article {
    display: grid;
    gap: 10px;
    min-height: 168px;
    color: inherit;
    padding: 18px;
    text-decoration: none;
}

.transport-panel-grid span,
.transport-trip-grid span {
    width: fit-content;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    letter-spacing: 0.03em;
    padding: 5px 9px;
    text-transform: uppercase;
}

.transport-panel-grid strong,
.transport-trip-grid strong {
    color: #0f172a;
    font-size: 18px;
}

.transport-panel-grid p,
.transport-trip-grid p {
    margin: 0;
    color: #64748b;
}

.transport-trip-grid small {
    color: #475569;
}

.transport-workflow-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.72fr) minmax(420px, 1fr);
    gap: 18px;
    align-items: start;
}

.transport-request-form,
.transport-list-panel {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.transport-request-form h3,
.transport-list-panel h3 {
    margin: 0;
    color: #0f172a;
}

.transport-request-form label {
    display: grid;
    gap: 7px;
    color: #334155;
    font-weight: 850;
}

.transport-request-form input,
.transport-request-form select,
.transport-request-form textarea,
.transport-lead-list input,
.transport-lead-list select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    padding: 10px 12px;
    font: inherit;
}

.transport-request-form textarea {
    resize: vertical;
}

.transport-inline-fields {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
}

.transport-fleet-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.transport-fleet-grid .transport-list-panel {
    min-height: 100%;
}

.transport-fleet-list {
    display: grid;
    gap: 10px;
}

.transport-fleet-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.transport-fleet-list article.inactive {
    opacity: 0.62;
    background: #f8fafc;
}

.transport-fleet-list strong {
    color: #0f172a;
}

.transport-fleet-list span,
.transport-fleet-list small {
    display: block;
    margin-top: 3px;
    color: #64748b;
}

.transport-fleet-list button {
    min-height: 36px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #f8fafc;
    color: #0f172a;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 0 12px;
}

.transport-fleet-list button:hover {
    border-color: #2563eb;
    color: #2563eb;
}

.transport-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 18px;
    align-items: start;
}

.transport-detail-main,
.transport-detail-side,
.transport-detail-update,
.transport-events {
    padding: 22px;
}

.transport-detail-route {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.transport-detail-route small,
.transport-detail-kpis small,
.transport-detail-side dt,
.transport-event-list small {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
}

.transport-detail-route strong {
    display: block;
    margin-top: 4px;
    color: #0f172a;
    font-size: 20px;
}

.transport-detail-route > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-weight: 900;
}

.transport-detail-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

.transport-detail-kpis span {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 12px;
}

.transport-detail-kpis strong,
.transport-detail-side dd {
    color: #0f172a;
    font-weight: 900;
}

.transport-detail-meta {
    margin-top: 18px;
}

.transport-detail-meta strong,
.transport-detail-side h3,
.transport-detail-update h3,
.transport-events h3 {
    color: #0f172a;
}

.transport-detail-meta p {
    margin: 8px 0 0;
    color: #475569;
}

.transport-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.transport-detail-tags span {
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 850;
    padding: 6px 10px;
}

.transport-detail-side {
    display: grid;
    gap: 14px;
}

.transport-detail-side h3,
.transport-detail-update h3,
.transport-events h3 {
    margin: 0;
}

.transport-detail-side dl {
    display: grid;
    gap: 10px;
    margin: 0;
}

.transport-detail-side dl div {
    display: grid;
    gap: 4px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.transport-detail-side dd {
    margin: 0;
}

.transport-detail-update {
    grid-column: 1 / -1;
}

.transport-detail-update .transport-inline-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.transport-events {
    grid-column: 1 / -1;
}

.transport-event-list {
    display: grid;
    gap: 10px;
}

.transport-bid-panel,
.transport-payout-panel,
.transport-document-panel {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.transport-bid-panel h3,
.transport-payout-panel h3,
.transport-document-panel h3 {
    margin: 0;
    color: #0f172a;
}

.transport-bid-list,
.transport-payout-list,
.transport-document-list {
    display: grid;
    gap: 10px;
}

.transport-bid-list > div,
.transport-payout-list > div,
.transport-document-list > div {
    display: grid;
    gap: 5px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.transport-bid-list > div.accepted {
    border-color: #10b981;
    background: #ecfdf5;
}

.transport-bid-list span,
.transport-payout-list span,
.transport-document-list span {
    width: fit-content;
    border-radius: 999px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 11px;
    font-weight: 950;
    padding: 4px 8px;
}

.transport-bid-list strong,
.transport-payout-list strong,
.transport-document-list strong {
    color: #0f172a;
}

.transport-bid-list em,
.transport-payout-list em {
    color: #0f766e;
    font-style: normal;
    font-weight: 950;
}

.transport-document-upload {
    display: grid;
    grid-template-columns: minmax(180px, 0.6fr) minmax(240px, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.transport-document-upload select,
.transport-document-upload input {
    min-height: 42px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    padding: 9px 11px;
    font: inherit;
}

.transport-document-upload button {
    min-height: 42px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 0 14px;
}

.transport-event-list div {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 12px;
}

.transport-event-list strong,
.transport-event-list span {
    display: block;
}

.transport-event-list strong {
    color: #0f172a;
}

.transport-event-list span {
    margin-top: 4px;
    color: #475569;
}

.transport-event-list small {
    margin-top: 8px;
}

.transport-detail-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 34px;
    border: 1px solid #dbe4ef;
    border-radius: 10px;
    background: #fff;
    color: #2563eb;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 0 12px;
    text-decoration: none;
}

.transport-detail-link:hover {
    border-color: #2563eb;
    background: #eff6ff;
}

.transport-detail-open {
    margin: 0;
}

.transport-empty-state {
    display: grid;
    gap: 8px;
    padding: 22px;
}

.transport-empty-state h3 {
    margin: 0;
    color: #0f172a;
}

.transport-request-list,
.transport-lead-list {
    display: grid;
    gap: 12px;
}

.transport-request-list article,
.transport-lead-list article {
    display: grid;
    gap: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    padding: 14px;
}

.transport-request-list strong,
.transport-lead-list strong {
    color: #0f172a;
}

.transport-request-list span,
.transport-lead-list span {
    color: #2563eb;
    font-weight: 850;
}

.transport-request-list small,
.transport-lead-list small,
.transport-request-list em {
    color: #64748b;
    font-style: normal;
}

.transport-lead-list article {
    grid-template-columns: minmax(260px, 1fr) minmax(360px, 0.88fr);
    align-items: start;
}

.transport-lead-list form {
    display: grid;
    grid-template-columns: 130px 130px 82px minmax(130px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr);
    gap: 8px;
}

.transport-lead-list button {
    grid-column: 1 / -1;
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #0f766e);
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    padding: 0 16px;
}

.transport-inline-action {
    margin: 4px 0 0;
}

.transport-inline-action button {
    min-height: 38px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #2563eb, #059669);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 900;
    padding: 0 14px;
}

@media (max-width: 1180px) {
    .modules-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .module-app-store-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .module-plan-grid,
    .module-tutorial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modules-app-intro,
    .modules-bottom-grid,
    .invoice-hero,
    .invoice-work-grid,
    .invoice-dashboard-grid,
    .transport-app-bar,
    .ftl-simple-shell,
    .transport-panel-grid,
    .transport-trip-grid,
    .transport-workflow-grid,
    .transport-fleet-grid,
    .transport-detail-grid,
    .transport-lead-list article {
        grid-template-columns: 1fr;
    }

    .transport-quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

    .transport-document-upload {
        grid-template-columns: 1fr;
    }

    .invoice-customer-grid,
    .invoice-payment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .invoice-live-total > div {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .modules-status .container,
    .modules-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .modules-status-track {
        gap: 14px;
        max-width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .modules-shell {
        padding-top: 34px;
    }

    .modules-card-grid,
    .module-app-store-grid,
    .module-plan-grid,
    .module-tutorial-grid,
    .modules-app-intro,
    .module-registry,
    .modules-flow,
    .modules-roadmap,
    .transport-start-panel,
    .transport-quick-actions,
    .ftl-simple-shell,
    .ftl-two-fields,
    .ftl-shipment-list article,
    .transport-panel-grid,
    .transport-trip-grid,
    .invoice-kpi-grid,
    .invoice-work-cards,
    .invoice-customer-grid,
    .invoice-payment-grid,
    .invoice-form-grid,
    .transport-inline-fields,
    .transport-detail-route,
    .transport-detail-kpis,
    .transport-detail-update .transport-inline-fields,
    .transport-fleet-list article,
    .transport-lead-list form,
    .transport-document-upload {
        grid-template-columns: 1fr;
    }

    .modules-primary,
    .modules-secondary,
    .module-open {
        width: 100%;
    }

    .invoice-app-bar {
        grid-template-columns: 1fr;
    }

    .transport-app-bar {
        grid-template-columns: 1fr;
    }

    .transport-app-bar nav,
    .invoice-app-bar nav {
        width: 100%;
    }

    .invoice-app-bar nav a {
        flex: 1 0 auto;
    }

    .invoice-app-action {
        width: 100%;
    }

    .invoice-hero-copy h1 {
        font-size: 36px;
    }

    .invoice-preview-total strong {
        font-size: 30px;
    }

    .invoice-preview-head,
    .invoice-preview-footer,
    .invoice-preview-lines span {
        align-items: flex-start;
        flex-direction: column;
    }

    .invoice-service-head {
        flex-direction: column;
    }

    .invoice-service-head > div:last-child,
    .invoice-system-counts,
    .invoice-line-add {
        width: 100%;
    }

    .invoice-live-total > div {
        grid-template-columns: 1fr;
    }
}
