/* Status indicators for the home representative overview and company request list. */
.company-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 4px 9px;
    border: 1px solid #dce4ed;
    border-radius: 999px;
    background: #f3f6fa;
    color: #566578;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.6;
    white-space: nowrap;
}
.company-status-badge svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.company-status-badge[data-representation-status="approved"] {
    color: #16643e;
    background: #e8f7ee;
    border-color: #bfdfcd;
}
.company-status-badge[data-representation-status="submitted"] {
    color: #205ba3;
    background: #eaf2fc;
    border-color: #cadef5;
}
.company-status-badge[data-representation-status="under_review"] {
    color: #275c92;
    background: #e9f0fa;
    border-color: #cbdcef;
}
.company-status-badge[data-representation-status="correction_requested"] {
    color: #8f5a00;
    background: #fff5da;
    border-color: #efd89b;
}
.company-status-badge[data-representation-status="rejected"] {
    color: #a33339;
    background: #fff0f0;
    border-color: #f0c9ca;
}
.company-page .company-request-action {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid #d0dff1;
    border-radius: 9px;
    background: #f8fbff;
    color: #153f79;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}
.company-page .company-request-action:hover,
.company-page .company-request-action:focus-visible {
    background: #eaf2fd;
    border-color: #a8c5e7;
}

/* Representative workflow steps are shown on the member company list. */
.equipment-representation-notice__company { display: block; padding: 16px 18px; }
.equipment-representation-notice__company-heading {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.equipment-representation-process {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px; list-style: none; margin: 0; padding: 0; direction: rtl;
}
.equipment-representation-process__step {
    position: relative; display: flex; flex-direction: column; align-items: center;
    justify-content: center; min-width: 0; min-height: 102px; padding: 10px 8px;
    border: 1px solid #dfe6ef; border-radius: 12px; background: #fff;
    text-align: center; color: #718097;
}
.equipment-representation-process__step:not(:last-child)::after {
    position: absolute; left: -23px; top: 50%; transform: translateY(-50%);
    content: '←'; font-size: 20px; font-weight: 800; color: #8295b1;
}
.equipment-representation-process__number {
    display: grid; place-items: center; width: 25px; height: 25px;
    margin-bottom: 5px; border-radius: 8px; background: #eef2f7;
    color: #64748b; font-size: 12px; font-weight: 800;
}
.equipment-representation-process__label { font-size: 13px; font-weight: 800; line-height: 1.6; }
.equipment-representation-process__time {
    margin-top: 5px; font-size: 11px; font-weight: 500; direction: ltr;
    unicode-bidi: isolate; line-height: 1.8; color: #536b89; white-space: nowrap;
}
.equipment-representation-process__time--empty { direction: rtl; color: #98a5b7; }
.equipment-representation-process__step[data-step-state="past"] {
    color: #254975; background: #f5f8fc; border-color: #dce7f3;
}
.equipment-representation-process__step[data-step-state="past"] .equipment-representation-process__number {
    color: #21558e; background: #e0ecf8;
}
.equipment-representation-process__step[data-step-state="current"] {
    color: #154578; border-color: #90b5e3; background: #eaf3ff;
    box-shadow: 0 1px 6px rgba(29, 92, 157, .08);
}
.equipment-representation-process__step[data-step-state="current"] .equipment-representation-process__number {
    color: #fff; background: #1e64ab;
}
[data-request-status="approved"] .equipment-representation-process__step[data-step-state="current"] {
    color: #17633d; border-color: #b4dbc6; background: #edf9f1;
}
[data-request-status="approved"] .equipment-representation-process__step[data-step-state="current"] .equipment-representation-process__number {
    background: #258556;
}
[data-request-status="correction_requested"] .equipment-representation-process__step[data-step-state="current"] {
    color: #8b590d; border-color: #ebcc82; background: #fffae9;
}
[data-request-status="correction_requested"] .equipment-representation-process__step[data-step-state="current"] .equipment-representation-process__number {
    background: #b27a1b;
}
[data-request-status="rejected"] .equipment-representation-process__step[data-step-state="current"] {
    color: #9b343f; border-color: #edbfc6; background: #fff1f3;
}
[data-request-status="rejected"] .equipment-representation-process__step[data-step-state="current"] .equipment-representation-process__number {
    background: #b44352;
}
@media(max-width: 760px) {
    .equipment-representation-process {
        grid-template-columns: repeat(4, minmax(138px, 1fr));
        gap: 24px; overflow-x: auto; padding-bottom: 8px;
    }
    .equipment-representation-process__step { min-height: 100px; padding: 8px 6px; }
    .equipment-representation-process__label { font-size: 12px; }
    .equipment-representation-process__time { font-size: 10px; }
}

/* Full-width representation overview above the ecosystem section. */
.equipment-representation-section {
    padding: 24px 0;
}
.equipment-representation-section .equipment-representation-notice {
    width: 100%;
    max-width: none;
    padding: 18px 20px;
    border: 1px solid #dde5f0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(22, 52, 95, .045);
}
.equipment-representation-section .equipment-representation-notice__company {
    display: flex; align-items: center; justify-content: flex-start;
    flex-wrap: wrap; gap: 10px; min-height: 42px; padding: 8px 12px;
}
.equipment-representation-section .equipment-representation-notice__title {
    margin-bottom: 10px;
}
.equipment-representation-section .equipment-representation-notice__description {
    margin-top: 10px;
}

/* Full workflow and original audited timestamps on the member-only list. */
.company-representation-list {
    display: grid; gap: 14px; margin-top: 2px;
}
.company-representation-card {
    min-width: 0; padding: 18px; border: 1px solid #dce5f0;
    border-radius: 15px; background: #fff;
    box-shadow: 0 4px 16px rgba(22, 52, 95, .035);
}
.company-representation-card__header {
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 12px; margin-bottom: 16px;
}
.company-representation-card__identity {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    min-width: 0;
}
.company-representation-card__identity h2 {
    margin: 0; color: #153e73; font-size: 17px; font-weight: 800;
    line-height: 1.7; overflow-wrap: anywhere;
}
.company-representation-card .equipment-representation-process {
    gap: 22px;
}
.company-representation-card .equipment-representation-process__step {
    min-height: 88px; padding: 9px 7px;
}
.company-representation-card .equipment-representation-process__step:not(:last-child)::after {
    left: -20px;
}
@media(max-width: 760px) {
    .company-representation-card { padding: 13px; }
    .company-representation-card__header { align-items: flex-start; }
    .company-representation-card .equipment-representation-process {
        grid-template-columns: repeat(4, minmax(138px, 1fr));
        overflow-x: auto; padding-bottom: 8px;
    }
}
