/* ============================================================
   REGISTRATIE Visual Identity R1
   Company logos + employee/user photos + graceful fallbacks
   ============================================================ */

.reg-brand-mark-company{
    overflow:hidden;
    position:relative;
    padding:0;
    background:#fff;
}
.reg-brand-mark-company>img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    padding:3px;
    background:#fff;
}
.reg-brand-mark-fallback{
    width:100%;
    height:100%;
    display:grid;
    place-items:center;
    font:inherit;
    font-weight:900;
}

.reg-company-context-shell{
    display:inline-flex;
    align-items:center;
    gap:7px;
    min-width:0;
}
.reg-context-company-logo{
    width:34px;
    height:34px;
    flex:0 0 34px;
    display:grid;
    place-items:center;
    overflow:hidden;
    border-radius:10px;
    background:#fff;
    border:1px solid rgba(177,133,31,.28);
    box-shadow:0 5px 15px rgba(76,52,8,.08);
}
.reg-context-company-logo img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    padding:3px;
}

.reg-user-avatar-photo{
    overflow:hidden;
    position:relative;
    padding:0!important;
}
.reg-user-avatar-photo>img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}
.reg-user-avatar-fallback{
    width:100%;
    height:100%;
    display:grid;
    place-items:center;
    font:inherit;
    font-weight:900;
}

.reg-company-identity{
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-width:0;
    max-width:100%;
}
.reg-company-logo{
    width:34px;
    height:34px;
    flex:0 0 34px;
    display:grid;
    place-items:center;
    overflow:hidden;
    border-radius:10px;
    border:1px solid rgba(164,122,34,.22);
    background:#fff;
    box-shadow:0 4px 12px rgba(55,41,9,.06);
}
.reg-company-logo>img{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    padding:3px;
}
.reg-company-logo-fallback{
    width:100%;
    height:100%;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#f5df96,#d3a12a);
    color:#37270a;
    font-size:.62rem;
    line-height:1;
    font-weight:950;
    letter-spacing:.02em;
}
.reg-company-name{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}
.reg-company-identity-sm .reg-company-logo{
    width:30px;
    height:30px;
    flex-basis:30px;
    border-radius:9px;
}
.reg-company-identity-sm .reg-company-name{
    font-size:.68rem;
    font-weight:800;
}
.reg-company-identity-info{
    margin-top:4px;
}
.reg-company-identity-info .reg-company-logo{
    width:32px;
    height:32px;
    flex-basis:32px;
}
.reg-company-identity-info .reg-company-name{
    margin:0!important;
}
.reg-company-identity-hero{
    gap:6px;
    vertical-align:middle;
}
.reg-company-identity-hero .reg-company-logo{
    width:25px;
    height:25px;
    flex-basis:25px;
    border-radius:7px;
    box-shadow:none;
}
.reg-company-identity-hero .reg-company-logo-fallback{
    font-size:.51rem;
}
.reg-company-identity-hero .reg-company-name{
    font-weight:850;
}

.wo-context-identity{
    display:inline-flex!important;
    align-items:center;
    gap:6px;
}
.wo-context-identity img{
    width:21px;
    height:21px;
    object-fit:contain;
    border-radius:6px;
    background:#fff;
    padding:2px;
    border:1px solid rgba(111,74,8,.16);
}
.wo-detail-subline{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px;
    margin:0;
    max-width:900px;
    font-size:.76rem;
    line-height:1.55;
}

html[data-reg-theme="dark"] .reg-brand-mark-company,
html[data-reg-theme="dark"] .reg-context-company-logo,
html[data-reg-theme="dark"] .reg-company-logo{
    background:#f7f4ec;
    border-color:rgba(222,180,66,.25);
}
html[data-reg-theme="dark"] .reg-company-logo-fallback{
    background:linear-gradient(135deg,#4a4027,#b88a25);
    color:#fff5da;
}

@media(max-width:900px){
    .reg-context-company-logo{display:none}
}

/* ============================================================
   REGISTRATIE Visual Identity R3 - global entity decoration
   ============================================================ */
.reg-person-identity,
.reg-auto-company-identity,
.reg-auto-person-identity{
    display:inline-flex;
    align-items:center;
    gap:7px;
    min-width:0;
    max-width:100%;
    vertical-align:middle;
}

.reg-auto-company-identity .reg-company-logo{
    width:28px;
    height:28px;
    flex-basis:28px;
    border-radius:8px;
}
.reg-auto-company-identity .reg-company-name{
    font:inherit;
    font-weight:inherit;
    color:inherit;
}

.reg-person-photo{
    width:28px;
    height:28px;
    flex:0 0 28px;
    display:grid;
    place-items:center;
    overflow:hidden;
    border-radius:50%;
    border:1px solid rgba(164,122,34,.22);
    background:#f5ecd3;
    box-shadow:0 4px 12px rgba(55,41,9,.06);
}
.reg-person-photo>img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
}
.reg-person-photo-fallback{
    width:100%;
    height:100%;
    display:grid;
    place-items:center;
    background:linear-gradient(135deg,#f5df96,#d3a12a);
    color:#37270a;
    font-size:.55rem;
    line-height:1;
    font-weight:950;
    letter-spacing:.02em;
}
.reg-person-name{
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font:inherit;
    font-weight:inherit;
    color:inherit;
}
html[data-reg-theme="dark"] .reg-person-photo{
    background:#2c2b28;
    border-color:rgba(222,180,66,.25);
}
html[data-reg-theme="dark"] .reg-person-photo-fallback{
    background:linear-gradient(135deg,#4a4027,#b88a25);
    color:#fff5da;
}

/* Dar tablo hücrelerinde marka, metni ezmeden kompakt kalsın. */
td .reg-auto-company-identity,
td .reg-auto-person-identity{
    max-width:260px;
}
@media(max-width:768px){
    .reg-auto-company-identity .reg-company-logo,
    .reg-person-photo{
        width:26px;
        height:26px;
        flex-basis:26px;
    }
}
