/* =========================================================
   Phoenix P3.7.3 — DarlinkCards
   ========================================================= */

.darlink-card{
    background:var(--darlink-card);
    border:1px solid var(--darlink-border);
    border-radius:18px;
    box-shadow:0 10px 30px rgba(15,23,42,.06);
    transition:all .20s ease;
}

.darlink-card:hover{
    box-shadow:0 14px 34px rgba(15,23,42,.08);
}

.darlink-card-header{
    padding:18px 24px;
    border-bottom:1px solid var(--darlink-border);
    font-weight:700;
}

.darlink-card-body{
    padding:24px;
}

.darlink-card-footer{
    padding:16px 24px;
    border-top:1px solid var(--darlink-border);
    background:#fafcff;
}
.darlink-admin-block-header{
    background:#d9edf9;
    color:#0F4C81;
    font-weight:800;
    padding:14px 18px;
    border-left:5px solid #0F4C81;
    font-size:1rem;
}
.darlink-settings-tile{
    min-height:76px;
    display:flex;
    align-items:center;
    gap:15px;
    padding:15px 17px;
    border:1px solid var(--darlink-border);
    border-radius:14px;
    background:#fff;
    color:var(--darlink-text);
    text-decoration:none;
    transition:all .18s ease;
}

.darlink-settings-tile > i:first-child{
    width:42px;
    min-width:42px;
    height:42px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:var(--darlink-primary-light);
    color:var(--darlink-primary);
    font-size:20px;
}

.darlink-settings-tile span{
    flex:1;
    display:flex;
    flex-direction:column;
    gap:3px;
}

.darlink-settings-tile strong{
    color:var(--darlink-dark);
    font-size:.95rem;
}

.darlink-settings-tile small{
    color:var(--darlink-muted);
    font-size:.82rem;
}

.darlink-settings-arrow{
    color:#94a3b8;
    font-size:16px;
}

a.darlink-settings-tile:hover{
    transform:translateY(-2px);
    border-color:#bfdbfe;
    box-shadow:0 10px 24px rgba(15,76,129,.10);
    background:#fbfdff;
}

.darlink-settings-tile.disabled{
    opacity:.58;
    cursor:not-allowed;
    background:#f8fafc;
}
.darlink-mode-icon{
    width:42px;
    height:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:var(--darlink-primary-light);
    color:var(--darlink-primary);
    font-size:20px;
}

.mode-delay-input[readonly]{
    background:#f8fafc;
    color:#64748b;
}
.darlink-number-preview{
    border:1px dashed #bfdbfe;
    border-radius:14px;
    background:#f8fbff;
    padding:18px;
}

.darlink-number-preview-value{
    font-size:1.55rem;
    font-weight:800;
    letter-spacing:.04em;
    word-break:break-word;
}
.darlink-document-preview-wrapper{
    position:sticky;
    top:0;
}

.darlink-document-preview{
    border:1px solid var(--darlink-border);
    border-radius:16px;
    background:#fff;
    overflow:hidden;
    box-shadow:0 12px 28px rgba(15,23,42,.08);
}

.darlink-document-preview-header{
    background:#123A5A;
    color:#fff;
    padding:22px;
    display:flex;
    justify-content:space-between;
    gap:20px;
}

.darlink-document-preview-logo{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:80px;
    min-height:42px;
    padding:8px 12px;
    background:rgba(255,255,255,.16);
    border:1px dashed rgba(255,255,255,.55);
    border-radius:10px;
    font-size:.75rem;
    font-weight:800;
}

.darlink-document-preview-body{
    padding:22px;
}

.darlink-document-preview-section{
    padding:13px 0;
    border-bottom:1px solid #edf2f7;
}

.darlink-document-preview-label{
    color:#6C757D;
    font-size:.72rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.06em;
    margin-bottom:5px;
}

.darlink-document-preview-lines{
    display:flex;
    flex-direction:column;
    gap:8px;
    padding:18px 0;
    border-bottom:1px solid #edf2f7;
}

.darlink-document-preview-footer{
    margin-top:18px;
    padding-top:14px;
    border-top:1px solid #edf2f7;
    font-size:.78rem;
    color:#64748b;
    text-align:center;
}

.darlink-document-preview-signature{
    margin-top:18px;
    min-height:22px;
    font-weight:700;
    text-align:right;
}
.darlink-document-preview-logo-image{
    display:block;
    max-width:150px;
    max-height:70px;
    object-fit:contain;
}
.darlink-logo-manager{
    display:flex;
    align-items:center;
    gap:22px;
    padding:18px;
    border:1px dashed #bfdbfe;
    border-radius:16px;
    background:#f8fbff;
}

.darlink-logo-current{
    width:190px;
    height:100px;
    display:flex;
    align-items:center;
    justify-content:center;
    border:1px solid var(--darlink-border);
    border-radius:14px;
    background:#fff;
    overflow:hidden;
}

.darlink-logo-manager-image{
    display:block;
    max-width:175px;
    max-height:85px;
    object-fit:contain;
}

.darlink-logo-placeholder{
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:7px;
    color:var(--darlink-muted);
    font-size:.84rem;
}

.darlink-logo-placeholder i{
    font-size:28px;
}

.darlink-document-preview-logo-image{
    display:block;
    max-width:150px;
    max-height:70px;
    object-fit:contain;
}
.darlink-logo-information{
    padding:13px 15px;
    border:1px solid #d1fae5;
    border-radius:12px;
    background:#f0fdf4;
}

.darlink-logo-information-title{
    margin-bottom:9px;
    font-size:.88rem;
    font-weight:800;
    color:#166534;
}

.darlink-logo-information-grid{
    display:grid;
    grid-template-columns:95px 1fr;
    gap:5px 12px;
    font-size:.82rem;
}

.darlink-logo-information-grid span{
    color:#64748b;
}

.darlink-logo-information-grid strong{
    color:#334155;
    word-break:break-word;
}
.darlink-information-list{
    display:flex;
    flex-direction:column;
}

.darlink-information-list > div{
    display:flex;
    justify-content:space-between;
    gap:20px;
    padding:11px 0;
    border-bottom:1px solid #edf2f7;
}

.darlink-information-list > div:last-child{
    border-bottom:0;
}

.darlink-information-list span{
    color:var(--darlink-muted);
}

.darlink-information-list strong{
    color:var(--darlink-dark);
    text-align:right;
    word-break:break-word;
}

.darlink-system-stat{
    display:flex;
    align-items:center;
    gap:14px;
    padding:17px;
    border:1px solid var(--darlink-border);
    border-radius:14px;
    background:#fbfdff;
}

.darlink-system-stat-icon{
    width:44px;
    min-width:44px;
    height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:12px;
    background:var(--darlink-primary-light);
    color:var(--darlink-primary);
    font-size:20px;
}
.darlink-user-avatar{
    width:42px;
    height:42px;
    min-width:42px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--darlink-primary-light);
    color:var(--darlink-primary);
    font-size:.82rem;
    font-weight:800;
    letter-spacing:.04em;
    border:1px solid #dbeafe;
}
.darlink-user-avatar-large{
    width:72px;
    height:72px;
    min-width:72px;
    border-radius:18px;
    font-size:1.15rem;
}