/* Project overview and detail cards. */
.project-workspace,.project-index{max-width:1400px;margin:0 auto}.project-breadcrumb{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:600;margin-bottom:20px;color:var(--muted)}.project-hero{display:flex;align-items:center;gap:24px;padding:30px 32px;margin-bottom:24px;border:1px solid #d6e7ec;border-radius:26px;background:radial-gradient(ellipse at 100% 0%,#cde6ec66,transparent 65%),linear-gradient(120deg,#fff,#edf6f7);box-shadow:0 8px 30px #214c6005}.project-hero-mark{display:grid;place-items:center;width:76px;height:76px;flex-shrink:0;border:1px solid #d6e9ee;border-radius:23px;color:var(--teal);background:#fff;box-shadow:0 8px 20px #347e9109}.project-hero-mark svg{width:34px;height:34px}.project-hero-copy{min-width:0}.project-hero .eyebrow{margin-bottom:6px;letter-spacing:1.8px;font-size:10px}.project-hero h1{margin:0 0 12px;font-size:30px;letter-spacing:-.7px;overflow-wrap:anywhere}.project-customer-chip{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.project-customer-chip svg{width:16px;height:16px;flex-shrink:0}.project-customer-chip a{font-weight:600}.project-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:26px}.project-stat{display:flex;align-items:center;gap:14px;min-width:0;padding:19px 18px;background:#fff;border:1px solid var(--line);border-radius:18px;color:var(--ink);transition:border-color .15s,box-shadow .15s}.project-stat:hover{text-decoration:none;color:var(--ink);border-color:#aacdd6;box-shadow:0 8px 22px #214c6009}.project-stat-icon{display:grid;place-items:center;flex-shrink:0;width:43px;height:43px;border-radius:14px;background:#edf5f7;color:var(--teal)}.project-stat:nth-child(2) .project-stat-icon{background:#edf3f0;color:#5e8972}.project-stat:nth-child(3) .project-stat-icon{background:#f1eff7;color:#827597}.project-stat:nth-child(4) .project-stat-icon{background:#faf3e9;color:#af8e5e}.project-stat-copy{display:flex;flex-direction:column;min-width:0;gap:3px}.project-stat-copy strong{font-size:25px;line-height:1.15;font-weight:650;letter-spacing:-.5px}.project-stat-copy>span{color:var(--muted);font-size:11px;line-height:1.4}.project-stat>svg{width:15px;height:15px;margin-left:auto;flex-shrink:0;color:#a1b7bf}.project-content-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:22px;align-items:start}.project-box{min-width:0;border:1px solid var(--line);border-radius:22px;background:#fff;overflow:hidden;box-shadow:0 6px 24px #214c6004;scroll-margin-top:22px}.project-description-box{grid-column:span 7}.project-team-box{grid-column:span 5}.project-contacts-box,.project-credentials-box{grid-column:span 6}.project-mail-box{grid-column:1/-1}.project-box-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:78px;padding:20px 24px;border-bottom:1px solid #edf2f4}.project-heading-label{display:flex;align-items:center;gap:11px;min-width:0}.project-heading-label h2{font-size:16px;font-weight:650;line-height:1.4;margin:0}.project-section-icon{display:grid;place-items:center;width:30px;height:30px;color:var(--teal);flex-shrink:0}.project-section-icon svg{width:21px;height:21px}.project-count-badge,.project-section-count{display:inline-grid;place-items:center;min-width:23px;height:23px;padding:2px 6px;border-radius:8px;font-size:11px;font-weight:600;color:var(--muted);background:#f0f5f6}.project-section-count{margin-top:4px}.project-add-link{display:grid;place-items:center;width:33px;height:33px;flex-shrink:0;border-radius:11px;background:var(--soft);color:var(--teal);transition:background .15s}.project-add-link:hover{background:#d9edf1}.project-add-link svg{width:17px;height:17px}.project-box-body{padding:22px 24px}.project-description{margin:0;font-size:14px;line-height:1.85;color:#59717a;overflow-wrap:anywhere}.project-description-box .project-box-body{min-height:118px}.project-team-grid{display:flex;flex-direction:column;gap:10px;min-height:118px}.project-member-card{display:flex;align-items:center;gap:12px;padding:12px;border-radius:14px;background:#f7fafb}.person-initial{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:14px;color:var(--teal);background:#e8f2f5;font-size:16px;font-weight:650}.project-member-card:nth-child(even) .person-initial{background:#f0edf6;color:#827597}.project-member-card h3{margin:0 0 4px;font-size:13px;font-weight:600}.member-state{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px}.member-state:before{content:'';width:5px;height:5px;border-radius:50%;background:#76a48a}.member-state.is-inactive:before{background:#adb8bd}.project-workspace .contact-grid,.project-workspace .credential-grid{grid-template-columns:1fr;gap:14px;margin:0}.contact-card,.credential-card{border-color:#e2ecef;border-radius:17px;background:#fff;padding:20px;box-shadow:0 3px 14px #214c6003}.contact-card-heading,.credential-card-heading{display:flex;align-items:center;gap:12px;margin-bottom:18px}.contact-card-heading>div,.credential-card-heading>div{min-width:0}.contact-card .contact-card-heading h3,.credential-card .credential-card-heading h3{margin:0 0 4px;font-size:14px;font-weight:650;overflow-wrap:anywhere}.contact-position{display:block;color:var(--muted);font-size:11px}.contact-card-links{display:flex;flex-direction:column;gap:10px;padding-top:15px;border-top:1px solid #edf2f4}.contact-card-links>a,.contact-card-links>div{display:flex;align-items:center;gap:8px;font-size:12px;overflow-wrap:anywhere;min-width:0}.contact-card-links svg{width:15px;height:15px;flex-shrink:0;color:#7d9aa5}.contact-phone-label{font-size:11px;color:var(--muted);margin-right:auto}.project-card-notes{margin:16px 0 0;padding-top:12px;border-top:1px solid #edf2f4}.project-card-notes summary{font-size:11px;color:var(--muted);cursor:pointer}.project-card-notes p{font-size:12px!important;color:var(--muted);margin:10px 0 0}.credential-lock{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border-radius:13px;background:#edf4f0;color:#6a8c7b}.credential-lock svg{width:20px;height:20px}.credential-protection{font-size:10px;font-weight:500;color:#6a8c7b}.credential-identifier{display:flex;flex-direction:column;gap:5px;padding:13px 15px;border:1px solid #e6eef0;border-radius:12px;background:#f8fbfc;overflow-wrap:anywhere}.credential-identifier>span,.credential-password-row>span:first-child{color:var(--muted);font-size:10px}.credential-identifier strong{font-size:13px;font-weight:500}.credential-password-row{display:flex;align-items:center;justify-content:space-between;padding:14px 2px;font-size:13px}.credential-password-row .masked-password{color:#88a1ab;font-size:13px;letter-spacing:3px}.credential-url{display:flex;align-items:center;gap:7px;margin:2px 0 6px;font-size:11px;overflow-wrap:anywhere;min-width:0}.credential-url svg{width:14px;height:14px;flex-shrink:0;transform:rotate(-40deg)}.credential-card form{padding-top:14px;margin-top:12px;border-top:1px solid #edf2f4}.credential-card form>button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin:0;font-size:11px;padding:10px;border-radius:10px}.credential-card form svg{width:14px;height:14px}.project-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;min-height:138px;width:100%;padding:24px;border:1px dashed #d7e6eb;border-radius:16px;background:#f9fcfc;text-align:center;color:#8ca6b0}.project-empty>svg{width:27px;height:27px;stroke-width:1.3}.project-empty p{font-size:12px;color:var(--muted);margin:0}.project-mail-box table{white-space:normal;table-layout:fixed}.project-mail-box table th:first-child{width:155px}.project-mail-box table th:nth-child(2){width:26%}.project-mail-box th,.project-mail-box td{padding:12px 24px;overflow-wrap:anywhere}.project-mail-box td:first-child{font-size:11px;white-space:nowrap;color:var(--muted)}.project-mail-box .pagination-row{padding:18px 24px;margin:0}.project-mail-box .dashboard-mail-row:last-child td{border-bottom:0}.project-tiles{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}.project-tiles .project-tile{display:flex;flex-direction:column;aspect-ratio:auto;min-height:275px;padding:24px;border-radius:21px;border-color:#dce8ec;background:linear-gradient(155deg,#fff 70%,#f4f9fa);box-shadow:0 4px 20px #214c6005}.project-tile-top{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:20px}.project-tile-top .entity-symbol{width:43px;height:43px;border-radius:14px}.project-tile-arrow{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;color:#99b2bb;background:#f5f9fa}.project-tile-arrow svg{width:15px;height:15px;transform:rotate(-40deg)}.project-tiles .project-tile h3{font-size:18px;font-weight:650;line-height:1.4;margin:0 0 9px}.project-tile-customer{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:11px}.project-tile-customer svg{width:13px;height:13px;flex-shrink:0}.project-tiles .project-tile>p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;line-height:1.7;margin:16px 0 20px;color:#81959d}.project-tile-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-top:auto;padding-top:15px;border-top:1px solid #e8eff2;font-size:11px;font-weight:600;color:var(--teal)}.project-tiles .project-tile:hover{text-decoration:none;border-color:#a9cbd5;box-shadow:0 12px 30px #214c6010}.project-index .page-header{align-items:center;margin-bottom:26px}.project-index .page-header h1{font-size:29px;margin:0}.dashboard-entities .project-tiles{grid-template-columns:repeat(auto-fit,minmax(170px,1fr))}.dashboard-entities .project-tile{min-height:260px;padding:20px}.dashboard-entities .project-tile h3{font-size:16px}.project-tiles>.project-empty{grid-column:1/-1}
@media(min-width:1700px){.project-workspace .contact-grid,.project-workspace .credential-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1100px){.project-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-description-box,.project-team-box,.project-contacts-box,.project-credentials-box{grid-column:span 6}.project-box-heading{padding:17px 18px}.project-heading-label{gap:7px}.project-heading-label h2{font-size:14px}.project-box-body{padding:18px}.project-team-grid{padding:18px}.project-hero{padding:25px}}
@media(max-width:850px){.project-description-box,.project-team-box,.project-contacts-box,.project-credentials-box{grid-column:1/-1}.project-workspace .contact-grid,.project-workspace .credential-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.project-content-grid{gap:18px}.project-team-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.project-team-grid>.project-empty{grid-column:1/-1}.project-hero h1{font-size:25px}}
@media(max-width:600px){.project-hero{padding:22px 18px;gap:15px;border-radius:21px}.project-hero-mark{width:52px;height:52px;border-radius:16px}.project-hero-mark svg{width:25px;height:25px}.project-hero h1{font-size:22px}.project-stat-grid{gap:10px;margin-bottom:18px}.project-stat{gap:9px;padding:15px 12px;border-radius:16px}.project-stat-icon{width:34px;height:34px;border-radius:11px}.project-stat-icon svg{width:18px;height:18px}.project-stat-copy strong{font-size:22px}.project-stat-copy>span{font-size:10px}.project-stat>svg{display:none}.project-workspace .contact-grid,.project-workspace .credential-grid,.project-team-grid{grid-template-columns:1fr}.project-box{border-radius:19px}.project-heading-label h2{font-size:14px}.project-box-body{padding:16px}.project-tiles{grid-template-columns:1fr}.project-tiles .project-tile{min-height:240px;padding:22px}.dashboard-entities .project-tiles{grid-template-columns:1fr}.project-mail-box th,.project-mail-box td{padding:10px 14px}.project-mail-box table{min-width:570px}.project-mail-box .pagination-row{padding:14px}.project-index .page-header h1{font-size:25px}}
@media(prefers-reduced-motion:reduce){.project-stat,.project-tiles .project-tile{transition:none}.project-tiles .project-tile:hover{transform:none}}

.project-company-box{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 24px;background:linear-gradient(115deg,#fff,#f3f8f6);border-color:#dce9e3}.project-company-summary{display:flex;align-items:center;gap:16px;min-width:0}.project-company-summary>div{min-width:0}.project-company-symbol{display:grid;place-items:center;flex-shrink:0;width:49px;height:49px;border-radius:15px;background:#eaf3ed;color:#668b76}.project-company-label{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.project-company-summary h2{font-size:17px;margin:0;overflow-wrap:anywhere}.project-company-summary p{color:var(--muted);font-size:11px;margin:7px 0 0}.project-company-box>.button{flex-shrink:0}.project-tile-company{display:flex;flex-direction:column;gap:2px;font-size:11px;margin-top:12px;padding:8px 10px;border-radius:9px;background:#f0f6f2;color:#668b76;width:100%;overflow-wrap:anywhere}.project-tile-company>span{font-size:9px;color:var(--muted)}.company-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:22px}.company-card{display:flex;flex-direction:column;min-width:0;margin:0;overflow-wrap:anywhere}.company-card>header{display:flex;align-items:center;gap:14px;margin-bottom:22px}.company-card>header>div{min-width:0}.company-card h2{font-size:18px;margin:0}.company-card header p{margin:5px 0 0;font-size:12px}.company-monogram{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;border-radius:15px;background:#eaf3ed;color:#668b76;font-size:20px;font-weight:650}.company-card dl{margin:0 0 25px}.company-card dt{font-size:10px;color:var(--muted);margin-top:12px}.company-card dd{font-size:13px;margin:3px 0 0}.company-card>footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:18px;border-top:1px solid var(--line)}.company-form-section{border:0;border-bottom:1px solid var(--line);padding:0 0 24px;margin:0 0 24px;min-width:0}.company-form-section legend{font-size:14px;font-weight:650;margin:0}.company-form-section>small{margin-top:8px;font-size:11px}@media(max-width:600px){.project-company-box{align-items:flex-start;flex-direction:column;padding:18px}.project-company-summary{align-items:flex-start;gap:12px}.project-company-symbol{width:40px;height:40px;border-radius:12px}.project-company-summary h2{font-size:15px}.company-card-grid{grid-template-columns:1fr}.company-card>footer{flex-wrap:wrap}}

.customer-workspace{max-width:1400px;margin:0 auto}.customer-hero .project-hero-mark{font-size:28px;font-weight:600}.customer-hero .project-hero-copy>.muted{font-size:12px}.customer-header-actions{display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0}.customer-workspace-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:22px;align-items:start}.customer-details-box{grid-column:span 7}.customer-contacts-box{grid-column:span 5}.customer-projects-box,.customer-mail-box,.customer-invoices-box{grid-column:1/-1}.customer-workspace .project-box-heading>h2{font-size:16px;margin:0;font-weight:650}.customer-workspace .contact-grid{grid-template-columns:1fr;margin:0}.customer-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.customer-data-card{min-width:0;padding:16px;border:1px solid #e5edf0;border-radius:15px;background:#f9fcfc;overflow-wrap:anywhere}.customer-data-card h3{font-size:12px;color:var(--teal);font-weight:650;margin:0 0 14px}.customer-data-card dl{margin:0}.customer-data-card dt{font-size:10px;color:var(--muted);margin-top:12px}.customer-data-card dd{font-size:12px;margin:3px 0 0}.customer-description{font-size:13px;color:var(--muted);margin:20px 0 0;padding-top:18px;border-top:1px solid var(--line);overflow-wrap:anywhere}.customer-section-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.customer-mail-help{font-size:11px;margin:7px 0 0}.customer-invoices-box .status{margin:0}.customer-workspace .project-mail-box .mail-unread td:last-child>a{font-weight:650}.project-customer-change{font-size:10px;white-space:nowrap;margin-left:8px;padding:4px 9px;border-radius:8px;background:#fff;border:1px solid #dce8eb}.project-customer-chip{flex-wrap:wrap}@media(max-width:1100px){.customer-hero{flex-wrap:wrap}.customer-header-actions{margin-left:0}.customer-details-box,.customer-contacts-box{grid-column:1/-1}.customer-workspace .contact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.customer-workspace-grid{gap:18px}.customer-data-grid,.customer-workspace .contact-grid{grid-template-columns:1fr}.customer-hero .project-hero-copy{flex:1}.customer-header-actions{width:100%;justify-content:flex-end}.customer-workspace .project-box-heading{flex-wrap:wrap}.customer-section-actions{justify-content:flex-start}.customer-workspace .project-box-heading>h2{font-size:14px}}
.company-autocomplete{position:relative}.company-suggestions{position:absolute;z-index:8;inset:calc(100% + 6px) 0 auto;max-height:280px;overflow:auto;background:#fff;border:1px solid #cbdfe5;border-radius:14px;padding:5px;box-shadow:0 12px 35px #17323f20}.company-suggestions button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;margin:0;padding:11px 12px;text-align:left;border-radius:9px;background:#fff;color:var(--ink);font-weight:400}.company-suggestions button:hover,.company-suggestions button.is-active{background:var(--soft);color:var(--ink)}.company-suggestions strong{font-size:12px;font-weight:650;overflow-wrap:anywhere}.company-suggestions span{font-size:10px;color:var(--muted)}.company-lookup-status{display:block;margin-top:7px;font-size:10px;font-weight:400;line-height:1.6;color:var(--muted)}.company-bank-choice{padding:14px;border-radius:12px;background:#f1f7f3;border:1px solid #dce9e1;margin:0 0 18px;font-size:11px}.company-bank-choice select{font-size:12px;min-height:40px}

/* Combined, free company lookup. */
.company-suggestions button{position:relative;padding-right:7rem}
.company-suggestions .company-source{position:absolute;right:.65rem;top:.65rem;width:auto;font-size:.7rem;padding:.15rem .45rem;border-radius:1rem;background:#e8f4f0;color:#256d59}
.company-nav-button{align-self:flex-start;margin-top:.4rem;font-size:.78rem}
.lookup-manual{margin-bottom:.75rem}.lookup-nav-settings{margin:1rem 0;padding:1rem;border:1px solid var(--border,#e1e8e5);border-radius:1rem}
.lookup-nav-settings legend{padding:0 .35rem}.lookup-nav-settings .footnote{margin-top:0}.lookup-resources{margin-top:1.25rem;gap:.75rem;flex-wrap:wrap}
@media(max-width:500px){.company-suggestions button{padding-right:.65rem}.company-suggestions .company-source{position:static;display:inline-block;margin:.2rem 0;width:auto}}

.inquiry-profile .inquiry-header-actions {
    align-items: center;
    gap: .5rem;
    flex-wrap: nowrap;
    max-width: 100%;
}

.inquiry-header-actions form { margin: 0; }

.inquiry-status-form {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.inquiry-status-form label {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
}

.inquiry-profile .inquiry-header-actions :is(button, .button, select) {
    box-sizing: border-box;
    height: 38px;
    min-height: 38px;
    margin: 0;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.25;
}

.inquiry-header-actions select {
    width: clamp(9rem, 11vw, 12rem);
    padding: 0 12px;
    text-overflow: ellipsis;
}

.inquiry-profile .inquiry-header-actions :is(button, .button) {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: 0 12px;
    white-space: nowrap;
}

@media (max-width: 1150px) {
    .app-page .inquiry-profile .page-header { flex-wrap: wrap; }
    .inquiry-profile .inquiry-header-actions {
        flex-wrap: wrap;
        justify-content: flex-start;
        margin-left: 0;
    }
}

@media (max-width: 520px) {
    .inquiry-status-form { flex-wrap: wrap; }
}
