﻿/* Shared enterprise invoice workspace styles */

.enterprise-inline-alert {
    margin: 0 0 16px 0;
}

.enterprise-list-shell {
    background: #ffffff;
    border: 1px solid #f0e6dc;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.enterprise-list-header-noninvoice,
.enterprise-row-noninvoice {
    display: grid;
    grid-template-columns: 56px minmax(280px, 1.8fr) minmax(180px, 0.9fr) minmax(320px, 1.6fr);
    gap: 0;
    align-items: center;
}

.enterprise-list-header-noninvoice {
    padding: 0;
    background: #fff7ed;
    border-bottom: 1px solid #f3e7dc;
    font-size: 0.8rem;
    font-weight: 700;
    color: #9a3412;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

    .enterprise-list-header-noninvoice .enterprise-list-col {
        padding: 0.95rem 1rem;
        min-width: 0;
    }

.enterprise-row-noninvoice {
    min-height: 88px;
    border-bottom: 1px solid #f5ece4;
    transition: background 0.16s ease, box-shadow 0.16s ease;
}

    .enterprise-row-noninvoice:hover {
        background: #fffaf6;
    }

    .enterprise-row-noninvoice.selected {
        background: #fff7ed;
        box-shadow: inset 3px 0 0 #f59e0b;
    }

    .enterprise-row-noninvoice:last-child {
        border-bottom: none;
    }

.enterprise-list-col {
    padding: 18px 16px;
    min-width: 0;
}

.enterprise-list-col-check {
    display: flex;
    justify-content: center;
    align-items: center;
}

.enterprise-list-col-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.enterprise-action-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.enterprise-action-btn {
    min-height: 38px;
    padding: 0.52rem 0.9rem;
    border-radius: 12px;
    border: 1px solid #e7d9ca;
    background: #ffffff;
    color: #344054;
    font-size: 0.83rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease, opacity 0.16s ease;
}

    .enterprise-action-btn:hover:not(:disabled) {
        background: #fffaf5;
        border-color: #fdba74;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(16, 24, 40, 0.08);
    }

    .enterprise-action-btn:disabled {
        opacity: 0.58;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

.enterprise-action-btn-accent {
    background: linear-gradient(135deg, #e95420 0%, #f59e0b 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 22px rgba(233, 84, 32, 0.18);
}

    .enterprise-action-btn-accent:hover:not(:disabled) {
        box-shadow: 0 16px 28px rgba(233, 84, 32, 0.24);
    }

.enterprise-btn-danger,
.enterprise-action-btn-danger {
    background: linear-gradient(180deg, #b42318 0%, #912018 100%);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 12px 22px rgba(180, 35, 24, 0.16);
}

    .enterprise-btn-danger:hover:not(:disabled),
    .enterprise-action-btn-danger:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 16px 28px rgba(180, 35, 24, 0.22);
    }

    .enterprise-btn-danger:disabled,
    .enterprise-action-btn-danger:disabled {
        opacity: 0.58;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

@media (max-width: 1100px) {
    .enterprise-list-header-noninvoice {
        display: none;
    }

    .enterprise-row-noninvoice {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 8px 0;
    }

    .enterprise-list-col {
        padding: 10px 16px;
    }

    .enterprise-list-col-actions {
        justify-content: flex-start;
    }

    .enterprise-action-group {
        justify-content: flex-start;
    }

    .enterprise-list-col-check {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .enterprise-action-group {
        flex-direction: column;
        align-items: stretch;
    }

    .enterprise-action-btn {
        width: 100%;
        justify-content: center;
    }
}

.enterprise-list-header-unallocated,
.enterprise-row-unallocated {
    display: grid;
    grid-template-columns: 56px minmax(220px, 2fr) minmax(140px, 1fr) minmax(140px, 1fr) minmax(120px, 1fr) minmax(180px, 1.3fr);
    gap: 0;
    align-items: center;
}

.enterprise-list-header-unallocated {
    padding: 0;
    background: #fff7ed;
    border-bottom: 1px solid #f3e7dc;
    font-size: 0.8rem;
    font-weight: 700;
    color: #9a3412;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

    .enterprise-list-header-unallocated .enterprise-list-col {
        padding: 0.95rem 1rem;
    }

.enterprise-list-col-actions-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 1100px) {
    .enterprise-list-header-unallocated {
        display: none;
    }

    .enterprise-row-unallocated {
        grid-template-columns: 1fr;
        padding: 8px 0;
    }
}

.enterprise-shell {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    background: radial-gradient(circle at top left, rgba(233, 84, 32, 0.12), transparent 28%), radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.08), transparent 26%), linear-gradient(180deg, #1b1b20 0%, #121216 100%);
    border-radius: 30px;
}

.enterprise-backdrop-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(70px);
    pointer-events: none;
    opacity: 0.55;
    z-index: 0;
}

.enterprise-backdrop-glow-1 {
    width: 260px;
    height: 260px;
    background: rgba(233, 84, 32, 0.16);
    top: 4%;
    left: 2%;
}

.enterprise-backdrop-glow-2 {
    width: 300px;
    height: 300px;
    background: rgba(245, 158, 11, 0.12);
    bottom: 4%;
    right: 2%;
}

.enterprise-card-shell {
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    background: rgba(20, 20, 23, 0.92);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.enterprise-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    padding: 28px 30px;
    background: linear-gradient(180deg, rgba(233, 84, 32, 0.08) 0%, rgba(233, 84, 32, 0.02) 100%), linear-gradient(180deg, #1f1f23 0%, #17171b 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.enterprise-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(233, 84, 32, 0.12);
    border: 1px solid rgba(233, 84, 32, 0.18);
    color: #ffcfba;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    width: fit-content;
}

.enterprise-title {
    margin-top: 14px;
    font-size: 1.9rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.enterprise-subtitle {
    margin-top: 10px;
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 760px;
}

.enterprise-hero-panel {
    align-self: stretch;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.enterprise-hero-panel-title {
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.enterprise-guidance-list {
    margin: 0;
    padding-left: 1.1rem;
    color: #cbd5e1;
    font-size: 0.92rem;
    line-height: 1.75;
}

.enterprise-card {
    background: linear-gradient(180deg, #fffdfb 0%, #fff8f2 100%);
    padding: 20px;
}

.enterprise-card-header {
    padding: 18px 20px;
    border: 1px solid #f0e6dc;
    border-radius: 18px;
    background: #ffffff;
    margin-bottom: 18px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.enterprise-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.enterprise-toolbar-left,
.enterprise-toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.enterprise-toolbar-heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.enterprise-toolbar-title {
    font-size: 1rem;
    font-weight: 700;
    color: #172033;
    letter-spacing: -0.01em;
}

.enterprise-toolbar-subtitle {
    font-size: 0.84rem;
    color: #667085;
    line-height: 1.5;
}

.enterprise-filter-panel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #f3ebe3;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.enterprise-filter-topbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
    flex-wrap: wrap;
}

.enterprise-filter-search {
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.enterprise-filter-groups {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.enterprise-filter-group {
    border: 1px solid #f0e6dc;
    border-radius: 16px;
    background: #fffaf5;
    padding: 16px;
}

.enterprise-filter-group-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #172033;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.enterprise-filter-group-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.enterprise-filter-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.enterprise-filter-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #667085;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.enterprise-filter-input {
    width: 100%;
    min-height: 52px;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    border: 1px solid #e7d9ca;
    background: #ffffff;
    color: #172033;
    font-size: 0.96rem;
    outline: none;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

    .enterprise-filter-input::placeholder {
        color: #98a2b3;
    }

    .enterprise-filter-input:focus {
        border-color: #f59e0b;
        box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
    }

.enterprise-filter-actions {
    display: flex;
    align-items: end;
    gap: 10px;
}

.enterprise-filter-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.enterprise-filter-summary-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    background: rgba(233, 84, 32, 0.12);
    border: 1px solid rgba(233, 84, 32, 0.18);
    color: #c2410c;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.enterprise-filter-summary-text {
    font-size: 0.84rem;
    color: #667085;
}

.enterprise-list {
    background: #ffffff;
    border: 1px solid #f0e6dc;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.04);
}

.enterprise-list-header {
    padding: 0.95rem 1.25rem;
    background: #fff7ed;
    border-bottom: 1px solid #f3e7dc;
    font-size: 0.8rem;
    font-weight: 700;
    color: #9a3412;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.enterprise-check {
    width: 16px;
    height: 16px;
    accent-color: #f59e0b;
    cursor: pointer;
}

.enterprise-empty {
    min-height: 240px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #ffffff;
    color: #667085;
}

.enterprise-empty-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.enterprise-empty-title {
    font-size: 16px;
    font-weight: 700;
    color: #172033;
}

.enterprise-empty-subtitle {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.6;
    max-width: 420px;
}

.enterprise-btn {
    min-height: 48px;
    border-radius: 14px;
    padding: 0.8rem 1rem;
    font-size: 0.94rem;
    font-weight: 700;
    border: 1px solid transparent;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, opacity 0.16s ease;
    cursor: pointer;
}

.enterprise-btn-primary {
    background: linear-gradient(135deg, #e95420 0%, #f59e0b 100%);
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(233, 84, 32, 0.18);
}

    .enterprise-btn-primary:hover:not(:disabled) {
        transform: translateY(-1px);
        box-shadow: 0 18px 34px rgba(233, 84, 32, 0.24);
    }

    .enterprise-btn-primary:disabled {
        opacity: 0.72;
        cursor: not-allowed;
        transform: none;
        box-shadow: 0 10px 22px rgba(233, 84, 32, 0.12);
    }

.enterprise-btn-secondary {
    background: #ffffff;
    color: #344054;
    border-color: #e7d9ca;
}

    .enterprise-btn-secondary:hover:not(:disabled) {
        background: #fffaf5;
    }

.enterprise-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
}

.enterprise-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3001;
    width: min(1120px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
    overflow: auto;
    margin: 0;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffdfb 0%, #fff8f2 100%);
    border: 1px solid #eaecf0;
    box-shadow: 0 32px 80px rgba(16, 24, 40, 0.28);
}

.enterprise-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    border-bottom: 1px solid #f2f4f7;
    background: #ffffff;
}

.enterprise-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #172033;
}

.enterprise-modal-subtitle {
    margin-top: 4px;
    font-size: 14px;
    color: #667085;
}

.enterprise-modal-close {
    border: 0;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: #667085;
    cursor: pointer;
}

.enterprise-modal-body {
    padding: 22px;
}

.enterprise-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 22px 22px;
    border-top: 1px solid #f2f4f7;
    background: #ffffff;
}

.enterprise-user-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 320px;
    overflow-y: auto;
}

.enterprise-user-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid #eaecf0;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

    .enterprise-user-item:hover {
        background: #fffaf5;
        border-color: #fdba74;
    }

    .enterprise-user-item.selected {
        background: #fff7ed;
        border-color: #fdba74;
        box-shadow: inset 0 0 0 1px #fdba74;
    }

.enterprise-radio {
    margin-top: 2px;
    accent-color: #f59e0b;
}

.enterprise-user-content {
    min-width: 0;
}

.enterprise-user-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #172033;
}

.enterprise-summary-box {
    margin-bottom: 16px;
    padding: 1.2rem 1.25rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid #f0e6dc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.enterprise-summary-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #172033;
}

.enterprise-summary-text {
    margin-top: 0.35rem;
    font-size: 0.9rem;
    color: #667085;
}

.enterprise-empty-state {
    padding: 20px 0;
    color: #667085;
}

.enterprise-alert {
    margin-bottom: 14px;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 600;
}

.enterprise-alert-error {
    background: #fef3f2;
    color: #b42318;
    border: 1px solid #fecdca;
}

.enterprise-alert-success {
    background: #ecfdf3;
    color: #067647;
    border: 1px solid #abefc6;
}

.enterprise-status {
    display: inline-flex;
    align-items: center;
    padding: 0.34rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    border: 1px solid transparent;
}

.enterprise-status-received {
    background: #e5f1fb;
    color: #0f548c;
    border-color: #b9d6f2;
}

.enterprise-status-authorised {
    background: #fff4ce;
    color: #8a6200;
    border-color: #f1d99b;
}

.enterprise-status-processed {
    background: #dff6dd;
    color: #0e700e;
    border-color: #b7dfb0;
}

.enterprise-status-default {
    background: #f3f2f1;
    color: #605e5c;
    border-color: #edebe9;
}

@media (max-width: 1100px) {
    .enterprise-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .enterprise-filter-groups {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .enterprise-modal-backdrop {
        padding: 16px;
    }

    .enterprise-modal {
        width: calc(100vw - 32px);
        max-width: calc(100vw - 32px);
        max-height: calc(100vh - 32px);
    }
}

@media (max-width: 768px) {
    .enterprise-shell {
        padding: 0.75rem;
        border-radius: 22px;
    }

    .enterprise-card {
        padding: 16px;
    }

    .enterprise-card-header,
    .enterprise-list {
        border-radius: 16px;
    }

    .enterprise-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .enterprise-filter-topbar {
        flex-direction: column;
        align-items: stretch;
    }

    .enterprise-filter-group-grid {
        grid-template-columns: 1fr;
    }

    .enterprise-filter-actions .enterprise-btn {
        width: 100%;
    }
}


/* =========================
   NON-INVOICE SHARED STYLES
   ========================= */

.noninvoice-shell {
    position: relative;
    overflow: hidden;
    padding: 1rem;
    background: radial-gradient(circle at top left, rgba(233, 84, 32, 0.12), transparent 28%), radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.08), transparent 26%), linear-gradient(180deg, #1b1b20 0%, #121216 100%);
    border-radius: 30px;
}

.noninvoice-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.noninvoice-stat-tile {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
}

.noninvoice-stat-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.35rem;
}

.noninvoice-stat-value {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
}

.enterprise-filter-groups-single {
    grid-template-columns: 1fr;
}

.enterprise-list-header,
.enterprise-row {
    display: grid;
    grid-template-columns: 56px minmax(320px, 1.8fr) 220px minmax(340px, 1.6fr);
    gap: 0;
    align-items: center;
}

.enterprise-row {
    min-height: 88px;
    border-bottom: 1px solid #f5ece4;
    transition: background 0.16s ease, box-shadow 0.16s ease;
}

    .enterprise-row:hover {
        background: #fffaf6;
    }

    .enterprise-row.selected {
        background: #fff7ed;
        box-shadow: inset 3px 0 0 #f59e0b;
    }

    .enterprise-row:last-child {
        border-bottom: none;
    }

.enterprise-list-col {
    padding: 18px 16px;
    min-width: 0;
}

.enterprise-list-col-check {
    display: flex;
    justify-content: center;
    align-items: center;
}

.enterprise-row-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #172033;
    line-height: 1.4;
    word-break: break-word;
    cursor: copy;
}

.enterprise-data-primary {
    font-size: 0.92rem;
    font-weight: 700;
    color: #172033;
}

.enterprise-data-secondary {
    margin-top: 0.2rem;
    font-size: 0.8rem;
    color: #667085;
}

.enterprise-action-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 1100px) {
    .enterprise-list-header {
        display: none;
    }

    .enterprise-row {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 8px 0;
    }

    .enterprise-list-col {
        padding: 10px 16px;
    }

    .enterprise-list-col-actions {
        padding-top: 0;
    }

    .enterprise-action-group {
        justify-content: flex-start;
    }

    .enterprise-list-col-check {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .noninvoice-stat-grid {
        grid-template-columns: 1fr;
    }

    .enterprise-filter-group-grid {
        grid-template-columns: 1fr;
    }

    .enterprise-toolbar-right .enterprise-btn,
    .enterprise-filter-actions .enterprise-btn {
        width: 100%;
    }
}