/* Public styles for Sina Yaran Loan Portal will be expanded in dashboard stages. */
.sylp-public-placeholder {
    direction: rtl;
}

.sylp-public-wrap {
    max-width: 920px;
    margin: 28px auto;
    padding: 0 16px;
    font-family: Tahoma, Arial, sans-serif;
}

.sylp-public-card {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

.sylp-public-kicker {
    color: #2271b1;
    font-weight: 800;
    font-size: 12px;
}

.sylp-public-card h1,
.sylp-public-card h2 {
    margin: 10px 0 12px;
    color: #0f172a;
}

.sylp-public-card p {
    color: #475569;
    line-height: 2;
}

.sylp-public-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0;
}

.sylp-public-meta span,
.sylp-setup-list li {
    background: #f1f5f9;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 9px 12px;
}

.sylp-public-alert {
    border-radius: 16px;
    padding: 13px 15px;
    font-weight: 700;
    margin: 16px 0;
}

.sylp-public-alert-warning {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.sylp-public-alert-success {
    background: #ecfdf5;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.sylp-setup-list {
    display: grid;
    gap: 8px;
    padding: 0;
    list-style: none;
}

.sylp-public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.sylp-public-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 14px;
    padding: 10px 16px;
    background: #2271b1;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.sylp-public-button-secondary {
    background: #e2e8f0;
    color: #0f172a;
}

.sylp-profile-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.sylp-profile-summary div {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    padding: 13px;
}

.sylp-profile-summary span {
    display: block;
    color: #64748b;
    font-size: 12px;
    margin-bottom: 7px;
}

.sylp-profile-summary strong {
    color: #0f172a;
}

.sylp-profile-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.sylp-profile-form label span {
    display: block;
    font-weight: 800;
    margin-bottom: 7px;
    color: #172033;
}

.sylp-profile-form input[type="text"],
.sylp-profile-form input[type="password"],
.sylp-profile-form textarea {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.sylp-profile-full,
.sylp-checkbox-row {
    grid-column: 1 / -1;
}

.sylp-checkbox-row {
    display: flex;
    gap: 10px;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 12px;
}

.sylp-public-note {
    margin-top: 16px;
    color: #64748b;
}

.sylp-public-alert-error {
    background: #fff1f2;
    color: #9f1239;
    border: 1px solid #fecdd3;
}

@media (max-width: 760px) {
    .sylp-profile-summary,
    .sylp-profile-form {
        grid-template-columns: 1fr;
    }
}

.sylp-location-box {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: 16px;
}

.sylp-location-box h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

.sylp-location-box p {
    margin: 0 0 14px;
    color: #64748b;
}

.sylp-location-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sylp-location-grid select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 10px 12px;
    box-sizing: border-box;
}

@media (max-width: 760px) {
    .sylp-location-grid {
        grid-template-columns: 1fr;
    }
}


/* LOAN-06.04 staff selection in profile */
.sylp-location-type-select {
    font-weight: 800;
}


/* LOAN-06.04 field hints */
.sylp-field-hint {
    display: inline-block;
    margin-right: 6px;
    color: #64748b;
    font-weight: 500;
    font-size: 11px;
}


/* LOAN-06.05 central office selection in profile */
.sylp-central-office-note {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 12px 14px;
    color: #334155;
    display: grid;
    gap: 6px;
}

.sylp-central-office-note strong {
    color: #0f172a;
    font-size: 15px;
}

.sylp-central-office-note small {
    color: #64748b;
}


/* LOAN-06.06 subsidiary selection in profile */
.sylp-subsidiary-note {
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 12px 14px;
    color: #334155;
    display: grid;
    gap: 6px;
}

.sylp-subsidiary-note strong {
    color: #0f172a;
    font-size: 15px;
}


/* LOAN-06.06 conditional location visibility */
.sylp-location-dependent.is-hidden {
    display: none !important;
}


/* LOAN-07.01 employee dashboard template */
.sylp-dashboard-shell {
    max-width: 1180px;
    margin: 28px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
    font-family: Tahoma, Arial, sans-serif;
}

.sylp-dashboard-sidebar,
.sylp-dashboard-hero,
.sylp-dashboard-banner,
.sylp-dashboard-stat,
.sylp-dashboard-alert,
.sylp-dashboard-action-card {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
}

.sylp-dashboard-sidebar {
    padding: 18px;
    align-self: start;
    position: sticky;
    top: 18px;
}

.sylp-dashboard-brand {
    display: grid;
    gap: 4px;
    padding: 14px;
    border-radius: 18px;
    background: #f1f5f9;
    margin-bottom: 14px;
}

.sylp-dashboard-brand span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.sylp-dashboard-brand strong {
    color: #0f172a;
    font-size: 20px;
}

.sylp-dashboard-menu {
    display: grid;
    gap: 8px;
}

.sylp-dashboard-menu a {
    display: flex;
    gap: 9px;
    align-items: center;
    padding: 11px 12px;
    border-radius: 14px;
    text-decoration: none;
    color: #334155;
    font-weight: 800;
}

.sylp-dashboard-menu a.is-active,
.sylp-dashboard-menu a:hover {
    background: #2271b1;
    color: #ffffff;
}

.sylp-dashboard-main {
    display: grid;
    gap: 16px;
}

.sylp-dashboard-hero {
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    gap: 18px;
    align-items: center;
}

.sylp-dashboard-hero h1 {
    margin: 8px 0 10px;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.4;
}

.sylp-dashboard-hero p {
    margin: 0;
    color: #475569;
    line-height: 2;
}

.sylp-dashboard-user-card {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 7px;
}

.sylp-dashboard-user-card span,
.sylp-dashboard-user-card small,
.sylp-dashboard-stat span,
.sylp-dashboard-stat small {
    color: #64748b;
    font-size: 12px;
}

.sylp-dashboard-user-card strong,
.sylp-dashboard-stat strong {
    color: #0f172a;
    font-size: 22px;
}

.sylp-dashboard-banner {
    padding: 18px 20px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.sylp-dashboard-banner strong {
    color: #0f172a;
    font-size: 18px;
}

.sylp-dashboard-banner p {
    margin: 6px 0 0;
    color: #475569;
    line-height: 1.9;
}

.sylp-dashboard-banner a,
.sylp-dashboard-action-card a {
    background: #2271b1;
    color: #ffffff;
    border-radius: 14px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 800;
    white-space: nowrap;
}

.sylp-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sylp-dashboard-stat {
    padding: 16px;
    display: grid;
    gap: 8px;
}

.sylp-dashboard-progress {
    height: 8px;
    background: #e2e8f0;
    border-radius: 999px;
    overflow: hidden;
}

.sylp-dashboard-progress i {
    display: block;
    height: 100%;
    background: #2271b1;
    border-radius: inherit;
}

.sylp-dashboard-alert {
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    background: #fff7ed;
    color: #9a3412;
    border-color: #fed7aa;
}

.sylp-dashboard-alert-success {
    background: #ecfdf5;
    color: #166534;
    border-color: #bbf7d0;
}

.sylp-dashboard-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sylp-dashboard-action-card {
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
}

.sylp-dashboard-action-card strong {
    color: #0f172a;
    font-size: 18px;
}

.sylp-dashboard-action-card p {
    margin: 7px 0 0;
    color: #64748b;
    line-height: 1.8;
}

.sylp-dashboard-action-card > span {
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
}

.sylp-dashboard-action-card a {
    grid-column: 1 / -1;
    justify-self: start;
}

@media (max-width: 900px) {
    .sylp-dashboard-shell {
        grid-template-columns: 1fr;
    }

    .sylp-dashboard-sidebar {
        position: static;
    }

    .sylp-dashboard-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sylp-dashboard-hero,
    .sylp-dashboard-stats,
    .sylp-dashboard-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .sylp-dashboard-shell {
        margin: 18px auto;
        padding: 0 14px;
    }

    .sylp-dashboard-hero {
        padding: 22px 18px;
    }

    .sylp-dashboard-hero h1 {
        font-size: 30px;
    }

    .sylp-dashboard-banner,
    .sylp-dashboard-alert {
        display: grid;
    }

    .sylp-dashboard-menu {
        grid-template-columns: 1fr;
    }

    .sylp-dashboard-action-card {
        grid-template-columns: 1fr;
    }
}


/* LOAN-07.02 employee dashboard home */
.sylp-dashboard-home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 14px;
}

.sylp-dashboard-panel {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.07);
    padding: 18px;
}

.sylp-dashboard-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.sylp-dashboard-panel-head strong {
    color: #0f172a;
    font-size: 18px;
}

.sylp-dashboard-panel-head span,
.sylp-status-pill {
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    font-weight: 800;
}

.sylp-status-ready {
    background: #dcfce7;
    color: #166534;
}

.sylp-status-pending {
    background: #fff7ed;
    color: #9a3412;
}

.sylp-dashboard-panel p {
    color: #475569;
    line-height: 1.9;
    margin: 0 0 12px;
}

.sylp-empty-state {
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 6px;
    color: #64748b;
}

.sylp-empty-state strong {
    color: #0f172a;
}

.sylp-dashboard-announcements {
    display: grid;
    gap: 10px;
}

.sylp-dashboard-announcements article {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px 14px;
}

.sylp-dashboard-announcements strong {
    color: #0f172a;
}

.sylp-dashboard-announcements p {
    margin: 6px 0 0;
    color: #64748b;
    line-height: 1.8;
}

.sylp-dashboard-banner-secondary {
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
}

.sylp-dashboard-action-ready > span {
    background: #dcfce7;
    color: #166534;
}

.sylp-dashboard-action-pending > span {
    background: #fff7ed;
    color: #9a3412;
}

@media (max-width: 900px) {
    .sylp-dashboard-home-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .sylp-dashboard-home .sylp-dashboard-panel {
        padding: 16px;
    }

    .sylp-dashboard-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .sylp-dashboard-home .sylp-dashboard-stat strong {
        font-size: 20px;
    }
}


/* LOAN-07.03 employee dashboard menu pages */
.sylp-dashboard-page-hero {
    grid-template-columns: minmax(0, 1fr) 220px;
}

.sylp-dashboard-page-status {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 7px;
}

.sylp-dashboard-page-status span {
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.sylp-dashboard-page-status strong {
    color: #0f172a;
    font-size: 20px;
}

.sylp-dashboard-page-panel {
    display: grid;
    gap: 14px;
}

.sylp-dashboard-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.sylp-dashboard-feature-list article {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 14px;
}

.sylp-dashboard-feature-list strong {
    color: #0f172a;
}

.sylp-dashboard-feature-list p {
    margin: 7px 0 0;
    color: #64748b;
    line-height: 1.8;
}

.sylp-empty-state-large {
    padding: 18px;
}

.sylp-dashboard-page-cta {
    justify-self: start;
    background: #2271b1;
    color: #ffffff;
    border-radius: 14px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 800;
}

.sylp-dashboard-logout {
    color: #9a3412 !important;
}

.sylp-dashboard-logout:hover {
    background: #9a3412 !important;
    color: #ffffff !important;
}

@media (max-width: 900px) {
    .sylp-dashboard-page-hero,
    .sylp-dashboard-feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .sylp-dashboard-page-status {
        padding: 14px;
    }

    .sylp-dashboard-page-status strong {
        font-size: 18px;
    }

    .sylp-dashboard-feature-list article {
        padding: 12px;
    }

    .sylp-dashboard-menu a {
        justify-content: flex-start;
    }
}


/* LOAN-08.01 personnel photo upload */
.sylp-profile-summary {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sylp-photo-upload-box {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 14px;
}

.sylp-photo-upload-box h2 {
    margin: 0 0 8px;
    font-size: 18px;
    color: #0f172a;
}

.sylp-photo-upload-box p {
    margin: 0;
    color: #64748b;
    line-height: 1.9;
}

.sylp-photo-upload-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 14px;
    align-items: center;
}

.sylp-photo-upload-grid input[type="file"] {
    width: 100%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 10px 12px;
    box-sizing: border-box;
}

.sylp-photo-preview {
    min-height: 132px;
    border: 1px dashed #cbd5e1;
    border-radius: 16px;
    background: #ffffff;
    display: grid;
    place-items: center;
    text-align: center;
    color: #64748b;
    padding: 10px;
    overflow: hidden;
}

.sylp-photo-preview img {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid #dbe3ef;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.sylp-photo-preview strong {
    color: #0f172a;
}

.sylp-photo-preview small {
    display: block;
    margin-top: 6px;
    line-height: 1.7;
}

@media (max-width: 760px) {
    .sylp-profile-summary,
    .sylp-photo-upload-grid {
        grid-template-columns: 1fr;
    }

    .sylp-photo-preview {
        min-height: 120px;
    }
}


/* LOAN-08.02 drawn signature canvas */
.sylp-drawn-signature-box {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: 16px;
    display: grid;
    gap: 12px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.sylp-drawn-signature-box__head {
    display: grid;
    gap: 6px;
}

.sylp-drawn-signature-box__head strong {
    color: #0f172a;
    font-size: 18px;
}

.sylp-drawn-signature-box__head span,
.sylp-drawn-signature-box__actions small {
    color: #64748b;
    line-height: 1.9;
}

.sylp-drawn-signature-box__canvas-wrap {
    overflow: hidden;
    border: 1px dashed rgba(15, 23, 42, 0.28);
    border-radius: 14px;
    background: #ffffff;
}

.sylp-drawn-signature-canvas {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 180px;
    touch-action: none;
    cursor: crosshair;
    background: #ffffff;
}

.sylp-drawn-signature-box__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sylp-drawn-signature-clear {
    border: 0;
    border-radius: 999px;
    padding: 8px 16px;
    background: #fee2e2;
    color: #991b1b;
    cursor: pointer;
    font-weight: 800;
}

.sylp-drawn-signature-clear:hover {
    background: #fecaca;
}

.sylp-signature-preview {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 12px;
    display: grid;
    gap: 8px;
    color: #64748b;
}

.sylp-signature-preview strong {
    color: #0f172a;
}

.sylp-signature-preview img {
    max-width: 220px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid #dbe3ef;
}

@media (max-width: 520px) {
    .sylp-drawn-signature-canvas {
        height: 160px;
    }

    .sylp-drawn-signature-box__actions {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* LOAN-08.03 uploaded signature safe fallback */
.sylp-signature-upload-fallback {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 16px;
    padding: 12px;
    display: grid;
    gap: 8px;
}

.sylp-signature-upload-fallback strong {
    color: #9a3412;
}

.sylp-signature-upload-fallback p {
    margin: 0;
    color: #7c2d12;
    line-height: 1.9;
}

.sylp-signature-upload-fallback input[type="file"] {
    width: 100%;
    background: #ffffff;
    border: 1px solid #fdba74;
    border-radius: 14px;
    padding: 10px 12px;
    box-sizing: border-box;
}


/* LOAN-09.06 dashboard Gravity Forms integration */
.sylp-dashboard-form-panel {
    display: grid;
    gap: 18px;
}

.sylp-dashboard-form-wrap {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    padding: 18px;
    overflow: hidden;
}

.sylp-dashboard-form-wrap .gform_wrapper {
    direction: rtl;
}

.sylp-dashboard-form-wrap input,
.sylp-dashboard-form-wrap select,
.sylp-dashboard-form-wrap textarea {
    border-radius: 12px;
}


/* LOAN-10.01 official employee profile statement inside forms */
.sylp-form-profile-statement {
    display: grid;
    gap: 14px;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid rgba(40, 123, 184, 0.18);
    border-radius: 20px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    color: #0f172a;
}

.sylp-form-profile-statement__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.sylp-form-profile-statement__head strong {
    font-size: 17px;
    font-weight: 900;
}

.sylp-form-profile-statement__head span,
.sylp-form-profile-statement p {
    color: #475569;
    line-height: 2;
}

.sylp-form-profile-statement p {
    margin: 0;
    font-weight: 700;
}

.sylp-form-profile-statement dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.sylp-form-profile-statement dl div {
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 14px;
    background: #ffffff;
}

.sylp-form-profile-statement dt {
    margin: 0 0 4px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.sylp-form-profile-statement dd {
    margin: 0;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

@media (max-width: 720px) {
    .sylp-form-profile-statement dl {
        grid-template-columns: 1fr;
    }
}


/* LOAN-12.01 dynamic loan selection panel */
.sylp-loan-request-dynamic-panel {
    display: grid;
    gap: 16px;
    margin: 0 0 18px;
    padding: 18px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 22px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.sylp-loan-request-dynamic-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.sylp-loan-request-dynamic-panel__head strong {
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.sylp-loan-request-dynamic-panel__head span {
    color: #64748b;
    line-height: 2;
}

.sylp-loan-request-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sylp-loan-request-detail-grid div {
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    background: #ffffff;
}

.sylp-loan-request-detail-grid span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.sylp-loan-request-detail-grid strong {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.sylp-loan-request-description {
    color: #475569;
    line-height: 2;
    font-weight: 700;
}

@media (max-width: 720px) {
    .sylp-loan-request-detail-grid {
        grid-template-columns: 1fr;
    }
}


/* LOAN-12.02 dynamic guarantee model selection */
.sylp-loan-request-guarantee-guide {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px dashed rgba(37, 99, 235, 0.28);
    border-radius: 16px;
    background: #f8fafc;
}

.sylp-loan-request-guarantee-guide strong {
    color: #0f172a;
    font-weight: 900;
}

.sylp-loan-request-guarantee-guide span {
    color: #1d4ed8;
    font-weight: 900;
}

.sylp-loan-request-guarantee-guide small {
    color: #64748b;
    line-height: 1.9;
}

.sylp-dashboard-form-wrap .sylp-guarantee-option-disabled {
    opacity: 0.45;
    filter: grayscale(1);
}


/* LOAN-13.01 guarantor national id lookup */
.sylp-guarantor-lookup-panel {
    display: grid;
    gap: 18px;
}

.sylp-guarantor-lookup-form {
    display: grid;
    grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 0.8fr) auto;
    gap: 14px;
    align-items: end;
}

.sylp-guarantor-lookup-form label {
    display: grid;
    gap: 7px;
    margin: 0;
}

.sylp-guarantor-lookup-form label span {
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.sylp-guarantor-lookup-form input,
.sylp-guarantor-lookup-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(148, 163, 184, 0.45);
    border-radius: 14px;
    background: #fff;
    padding: 8px 12px;
    color: #0f172a;
    font-weight: 800;
}

.sylp-guarantor-lookup-result {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: #f8fafc;
}

.sylp-guarantor-lookup-result-success {
    border-color: rgba(34, 197, 94, 0.28);
    background: #f0fdf4;
}

.sylp-guarantor-lookup-result-error {
    border-color: rgba(239, 68, 68, 0.24);
    background: #fff7f7;
}

.sylp-guarantor-found-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.sylp-guarantor-found-grid div {
    padding: 12px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.sylp-guarantor-found-grid span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.sylp-guarantor-found-grid b {
    color: #0f172a;
    font-weight: 900;
}

@media (max-width: 900px) {
    .sylp-guarantor-lookup-form,
    .sylp-guarantor-found-grid {
        grid-template-columns: 1fr;
    }
}


/* LOAN-13.01 polish guarantor lookup page layout */
.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-hero {
    min-height: auto !important;
    padding: 34px 36px !important;
    align-items: center !important;
}

.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-hero h1 {
    margin: 8px 0 10px !important;
}

.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-hero p {
    max-width: 760px !important;
    line-height: 2.1 !important;
}

.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-panel {
    min-height: auto !important;
    padding: 28px 30px !important;
    align-content: start !important;
}

.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-panel .sylp-dashboard-panel-head {
    margin-bottom: 4px !important;
}

.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-form {
    grid-template-columns: minmax(280px, 1.4fr) minmax(220px, 0.8fr) 150px !important;
    align-items: end !important;
    margin-top: 10px !important;
}

.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-form .sylp-dashboard-page-cta {
    height: 46px !important;
    width: 100% !important;
    justify-content: center !important;
    border-radius: 14px !important;
}

.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-form input,
.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-form select {
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04) !important;
}

@media (max-width: 900px) {
    .sylp-dashboard-section-guarantees .sylp-guarantor-lookup-form {
        grid-template-columns: 1fr !important;
    }
}


/* LOAN-13.01 force compact guarantor lookup page */
.sylp-dashboard-section-guarantees .sylp-dashboard-main {
    gap: 18px !important;
}

.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-hero,
.sylp-dashboard-section-guarantees .sylp-dashboard-page-hero.sylp-guarantor-lookup-hero {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 28px 34px !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 220px !important;
    align-items: center !important;
    align-content: center !important;
}

.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-panel,
.sylp-dashboard-section-guarantees .sylp-dashboard-page-panel.sylp-guarantor-lookup-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 24px 28px !important;
    display: grid !important;
    align-content: start !important;
}

.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-panel .sylp-dashboard-panel-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    margin: 0 0 18px !important;
}

.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-form {
    margin-top: 0 !important;
}

@media (max-width: 900px) {
    .sylp-dashboard-section-guarantees .sylp-guarantor-lookup-hero,
    .sylp-dashboard-section-guarantees .sylp-dashboard-page-hero.sylp-guarantor-lookup-hero {
        grid-template-columns: 1fr !important;
        padding: 22px !important;
    }
}

/* LOAN-13.01 parent stretch fix for guarantor lookup */
.sylp-dashboard-section-guarantees.sylp-dashboard-shell,
.sylp-dashboard-shell.sylp-dashboard-section-guarantees {
    align-items: start !important;
}

.sylp-dashboard-section-guarantees .sylp-dashboard-main {
    align-self: start !important;
    align-content: start !important;
    grid-auto-rows: max-content !important;
}

.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-hero,
.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-panel {
    align-self: start !important;
}

.sylp-dashboard-section-guarantees .sylp-dashboard-page-status {
    align-self: center !important;
}

.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-panel {
    display: block !important;
}

.sylp-dashboard-section-guarantees .sylp-guarantor-lookup-form {
    display: grid !important;
}

/* LOAN-14.01 guarantor incoming requests dashboard */
.sylp-guarantor-incoming-panel {
    display: grid;
    gap: 16px;
}

.sylp-guarantor-incoming-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.sylp-guarantor-incoming-stats div,
.sylp-guarantor-request-detail-grid div {
    background: #f8fafc;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 16px;
    padding: 12px;
}

.sylp-guarantor-incoming-stats span,
.sylp-guarantor-request-detail-grid span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 5px;
}

.sylp-guarantor-incoming-stats b,
.sylp-guarantor-request-detail-grid b {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

.sylp-guarantor-request-list {
    display: grid;
    gap: 12px;
}

.sylp-guarantor-request-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.sylp-guarantor-request-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.sylp-guarantor-request-card__head strong {
    display: block;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.sylp-guarantor-request-card__head span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.sylp-guarantor-status-pill {
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 12px;
    white-space: nowrap;
}

.sylp-guarantor-status-pending {
    background: #eff6ff;
    color: #1d4ed8;
}

.sylp-guarantor-status-accepted,
.sylp-guarantor-status-approved {
    background: #dcfce7;
    color: #166534;
}

.sylp-guarantor-status-rejected,
.sylp-guarantor-status-expired {
    background: #fee2e2;
    color: #991b1b;
}

.sylp-guarantor-request-detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sylp-guarantor-request-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sylp-guarantor-action {
    border: 0;
    border-radius: 14px;
    padding: 10px 16px;
    font-weight: 900;
    cursor: not-allowed;
    opacity: 0.72;
}

.sylp-guarantor-action-accept {
    background: #16a34a;
    color: #ffffff;
}

.sylp-guarantor-action-reject {
    background: #ef4444;
    color: #ffffff;
}

.sylp-guarantor-request-actions small {
    color: #64748b;
    font-weight: 800;
}

@media (max-width: 900px) {
    .sylp-guarantor-incoming-stats,
    .sylp-guarantor-request-detail-grid {
        grid-template-columns: 1fr;
    }

    .sylp-guarantor-request-card__head,
    .sylp-guarantor-request-actions {
        display: grid;
    }
}

/* LOAN-14.02 active guarantor accept buttons */
.sylp-guarantor-action {
    cursor: pointer;
    opacity: 1;
}

.sylp-guarantor-action:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.sylp-guarantor-request-actions form,
form.sylp-guarantor-request-actions {
    margin: 0;
}

/* LOAN-14.03 reject guarantee note */
.sylp-guarantor-reject-note {
    display: grid;
    gap: 6px;
    flex: 1 1 100%;
    margin: 0;
}

.sylp-guarantor-reject-note span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.sylp-guarantor-reject-note textarea {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 14px;
    padding: 10px 12px;
    color: #0f172a;
    background: #ffffff;
    box-sizing: border-box;
    resize: vertical;
}

/* LOAN-15.02 documents page and secure download */
.sylp-documents-panel {
    display: grid;
    gap: 16px;
}

.sylp-documents-list {
    display: grid;
    gap: 12px;
}

.sylp-document-card {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.sylp-document-card strong {
    display: block;
    color: #0f172a;
    font-size: 16px;
    font-weight: 900;
}

.sylp-document-card span,
.sylp-document-meta span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.sylp-document-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sylp-document-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    text-decoration: none;
    font-weight: 900;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .sylp-document-card {
        grid-template-columns: 1fr;
    }

    .sylp-document-download {
        width: 100%;
    }
}


/* LOAN-17.01 manager dashboard template */
.sylp-manager-dashboard-wrap {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    direction: rtl;
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px;
    color: #0f172a;
}

.sylp-manager-sidebar,
.sylp-manager-panel,
.sylp-manager-hero,
.sylp-manager-stats article {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(148,163,184,.22);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    border-radius: 28px;
}

.sylp-manager-sidebar {
    padding: 20px;
    align-self: start;
    position: sticky;
    top: 20px;
}

.sylp-manager-brand {
    display: grid;
    gap: 4px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, #0f172a, #334155);
    color: #fff;
    margin-bottom: 16px;
}

.sylp-manager-brand span,
.sylp-manager-brand small {
    color: rgba(255,255,255,.72);
}

.sylp-manager-brand strong {
    font-size: 1.2rem;
}

.sylp-manager-menu {
    display: grid;
    gap: 8px;
}

.sylp-manager-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #334155;
    padding: 12px 14px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid transparent;
    font-weight: 700;
}

.sylp-manager-menu a.is-active,
.sylp-manager-menu a:hover {
    background: #e0f2fe;
    border-color: #bae6fd;
    color: #075985;
}

.sylp-manager-main {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.sylp-manager-hero {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 26px;
    background:
        radial-gradient(circle at top right, rgba(14,165,233,.20), transparent 34%),
        linear-gradient(135deg, #ffffff, #f8fafc);
}

.sylp-manager-hero h1 {
    margin: 8px 0;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.sylp-manager-hero p {
    color: #64748b;
    margin: 0;
    line-height: 1.9;
}

.sylp-manager-user-card {
    min-width: 220px;
    padding: 18px;
    border-radius: 22px;
    background: #0f172a;
    color: #fff;
    display: grid;
    gap: 5px;
}

.sylp-manager-user-card span,
.sylp-manager-user-card small {
    color: rgba(255,255,255,.72);
}

.sylp-manager-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sylp-manager-stats article {
    padding: 18px;
    display: grid;
    gap: 6px;
}

.sylp-manager-stats span,
.sylp-manager-stats small,
.sylp-manager-case-meta,
.sylp-manager-empty-note span {
    color: #64748b;
}

.sylp-manager-stats strong {
    font-size: 1.8rem;
}

.sylp-manager-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: 18px;
}

.sylp-manager-panel {
    padding: 20px;
    min-width: 0;
}

.sylp-manager-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.sylp-manager-panel-head div {
    display: grid;
    gap: 4px;
}

.sylp-manager-panel-head strong {
    font-size: 1.15rem;
}

.sylp-manager-panel-head span {
    color: #64748b;
}

.sylp-manager-panel-head a,
.sylp-manager-case-card a {
    text-decoration: none;
    border-radius: 999px;
    background: #0ea5e9;
    color: #fff;
    padding: 9px 14px;
    font-weight: 800;
    white-space: nowrap;
}

.sylp-manager-case-list,
.sylp-manager-notification-list {
    display: grid;
    gap: 12px;
}

.sylp-manager-case-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .9fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.sylp-manager-case-card div:first-child {
    display: grid;
    gap: 4px;
}

.sylp-manager-case-card strong {
    color: #0f172a;
}

.sylp-manager-case-card span {
    color: #64748b;
}

.sylp-manager-case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sylp-manager-case-meta span {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: .82rem;
}

.sylp-manager-notification-list article,
.sylp-manager-empty-note {
    padding: 13px;
    border-radius: 18px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.sylp-manager-notification-list article.is-unread {
    border-color: #bae6fd;
    background: #f0f9ff;
}

.sylp-manager-notification-list p {
    margin: 7px 0;
    color: #475569;
    line-height: 1.75;
}

.sylp-manager-notification-list small {
    color: #94a3b8;
}

@media (max-width: 980px) {
    .sylp-manager-dashboard-wrap,
    .sylp-manager-grid {
        grid-template-columns: 1fr;
    }

    .sylp-manager-sidebar {
        position: static;
    }

    .sylp-manager-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sylp-manager-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sylp-manager-case-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .sylp-manager-dashboard-wrap {
        padding: 12px;
        gap: 12px;
    }

    .sylp-manager-hero {
        display: grid;
        padding: 18px;
    }

    .sylp-manager-user-card {
        min-width: 0;
    }

    .sylp-manager-menu,
    .sylp-manager-stats {
        grid-template-columns: 1fr;
    }

    .sylp-manager-panel-head {
        display: grid;
    }

    .sylp-manager-panel-head a,
    .sylp-manager-case-card a {
        text-align: center;
    }
}


/* LOAN-17.02 manager profile edit */
.sylp-manager-profile-page {
    display: grid;
    gap: 18px;
}

.sylp-manager-profile-alert {
    padding: 14px 16px;
    border-radius: 18px;
    font-weight: 800;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
}

.sylp-manager-profile-alert-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.sylp-manager-profile-alert-error {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #9f1239;
}

.sylp-manager-profile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sylp-manager-profile-card,
.sylp-manager-profile-form,
.sylp-manager-profile-section {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(148,163,184,.22);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    border-radius: 24px;
}

.sylp-manager-profile-card {
    padding: 18px;
    display: grid;
    gap: 6px;
}

.sylp-manager-profile-card span,
.sylp-manager-profile-card small,
.sylp-manager-profile-section p {
    color: #64748b;
}

.sylp-manager-profile-card strong {
    font-size: 1.12rem;
    color: #0f172a;
}

.sylp-manager-profile-form {
    padding: 20px;
    display: grid;
    gap: 18px;
}

.sylp-manager-profile-section {
    padding: 18px;
    display: grid;
    gap: 16px;
}

.sylp-manager-profile-section h2 {
    margin: 0 0 6px;
    color: #0f172a;
}

.sylp-manager-profile-section p {
    margin: 0;
    line-height: 1.9;
}

.sylp-manager-profile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.sylp-manager-profile-fields label {
    display: grid;
    gap: 7px;
}

.sylp-manager-profile-fields span {
    font-weight: 800;
    color: #334155;
}

.sylp-manager-profile-fields input {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 15px;
    padding: 12px 13px;
    background: #fff;
    color: #0f172a;
}

.sylp-manager-profile-fields input[readonly] {
    background: #f8fafc;
    color: #64748b;
}

.sylp-manager-profile-submit {
    border: 0;
    border-radius: 18px;
    padding: 14px 22px;
    background: #0ea5e9;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
    justify-self: start;
}

.sylp-manager-profile-submit:hover {
    background: #0284c7;
}

@media (max-width: 980px) {
    .sylp-manager-profile-grid,
    .sylp-manager-profile-fields {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .sylp-manager-profile-grid,
    .sylp-manager-profile-fields {
        grid-template-columns: 1fr;
    }

    .sylp-manager-profile-submit {
        width: 100%;
    }
}


/* LOAN-17.03 manager review cartable, adapted from shareholder approval cards */
.sylp-manager-cartable-page {
    display: grid;
    gap: 18px;
}

.sylp-manager-cartable-home-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sylp-manager-cartable-home-card {
    display: grid;
    gap: 8px;
    text-decoration: none;
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(148,163,184,.22);
    background: #fff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    color: #0f172a;
}

.sylp-manager-cartable-home-card span {
    color: #64748b;
    font-weight: 800;
}

.sylp-manager-cartable-home-card strong {
    font-size: 2rem;
    font-weight: 900;
}

.sylp-manager-cartable-home-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.75;
}

.sylp-manager-cartable-home-card em {
    font-style: normal;
    font-weight: 900;
    color: #0284c7;
}

.sylp-manager-cartable-note,
.sylp-manager-cartable-list-card,
.sylp-manager-cartable-filters {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(148,163,184,.22);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    border-radius: 24px;
}

.sylp-manager-cartable-note {
    padding: 16px 18px;
    color: #475569;
    line-height: 1.9;
}

.sylp-manager-cartable-note strong {
    color: #0f172a;
}

.sylp-manager-cartable-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sylp-manager-cartable-tabs a {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    background: #f8fafc;
    color: #334155;
    font-weight: 900;
}

.sylp-manager-cartable-tabs a.is-active {
    background: #0ea5e9;
    color: #fff;
    border-color: #0ea5e9;
}

.sylp-manager-cartable-tabs span {
    min-width: 26px;
    text-align: center;
    border-radius: 999px;
    padding: 2px 7px;
    background: rgba(255,255,255,.75);
    color: #0f172a;
}

.sylp-manager-cartable-filters {
    padding: 16px;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(160px, .55fr) minmax(160px, .55fr) auto;
    gap: 12px;
    align-items: end;
}

.sylp-manager-cartable-filters label {
    display: grid;
    gap: 7px;
}

.sylp-manager-cartable-filters span {
    font-weight: 900;
    color: #334155;
}

.sylp-manager-cartable-filters input,
.sylp-manager-cartable-filters select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 15px;
    padding: 11px 12px;
    background: #fff;
    color: #0f172a;
}

.sylp-manager-cartable-filters button {
    border: 0;
    border-radius: 16px;
    padding: 12px 18px;
    background: #0ea5e9;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.sylp-manager-cartable-list-card {
    padding: 18px;
}

.sylp-manager-cartable-list-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.sylp-manager-cartable-list-head h2 {
    margin: 0 0 5px;
    color: #0f172a;
}

.sylp-manager-cartable-list-head p {
    margin: 0;
    color: #64748b;
}

.sylp-manager-cartable-list-head > span {
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
}

.sylp-manager-cartable-table-wrap {
    overflow-x: auto;
}

.sylp-manager-cartable-table {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.sylp-manager-cartable-table th {
    text-align: right;
    color: #64748b;
    font-size: .86rem;
    padding: 8px 10px;
}

.sylp-manager-cartable-table td {
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    padding: 13px 10px;
    vertical-align: middle;
    color: #0f172a;
}

.sylp-manager-cartable-table td:first-child {
    border-right: 1px solid #e2e8f0;
    border-radius: 0 18px 18px 0;
}

.sylp-manager-cartable-table td:last-child {
    border-left: 1px solid #e2e8f0;
    border-radius: 18px 0 0 18px;
}

.sylp-manager-cartable-table strong,
.sylp-manager-cartable-table small {
    display: block;
}

.sylp-manager-cartable-table small {
    margin-top: 4px;
    color: #64748b;
}

.sylp-cartable-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 900;
    background: #e0f2fe;
    color: #075985;
}

.sylp-cartable-pill-active {
    background: #dcfce7;
    color: #166534;
}

.sylp-cartable-pill-warning {
    background: #fef3c7;
    color: #92400e;
}

.sylp-cartable-pill-danger {
    background: #fee2e2;
    color: #991b1b;
}

.sylp-cartable-pill-done {
    background: #eef2ff;
    color: #3730a3;
}

.sylp-manager-cartable-detail-link {
    text-decoration: none;
    display: inline-block;
    border-radius: 999px;
    padding: 8px 13px;
    background: #0f172a;
    color: #fff;
    font-weight: 900;
    white-space: nowrap;
}

@media (max-width: 980px) {
    .sylp-manager-cartable-home-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sylp-manager-cartable-filters {
        grid-template-columns: 1fr 1fr;
    }

    .sylp-manager-cartable-filters button {
        grid-column: 1 / -1;
    }
}

@media (max-width: 620px) {
    .sylp-manager-cartable-home-grid,
    .sylp-manager-cartable-filters {
        grid-template-columns: 1fr;
    }

    .sylp-manager-cartable-list-head {
        display: grid;
    }

    .sylp-manager-cartable-tabs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .sylp-manager-cartable-table {
        min-width: 760px;
    }
}


/* LOAN-17.03 mobile cartable table overflow fix */
@media (max-width: 620px) {
    .sylp-manager-cartable-table-wrap {
        overflow-x: visible;
    }

    .sylp-manager-cartable-table {
        min-width: 0 !important;
        width: 100%;
        display: block;
        border-spacing: 0;
    }

    .sylp-manager-cartable-table thead {
        display: none;
    }

    .sylp-manager-cartable-table tbody,
    .sylp-manager-cartable-table tr,
    .sylp-manager-cartable-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .sylp-manager-cartable-table tr {
        margin: 0 0 14px;
        padding: 12px;
        border: 1px solid #e2e8f0;
        border-radius: 22px;
        background: #f8fafc;
    }

    .sylp-manager-cartable-table td {
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 9px 6px !important;
    }

    .sylp-manager-cartable-table td::before {
        display: block;
        margin-bottom: 4px;
        color: #64748b;
        font-size: .78rem;
        font-weight: 900;
    }

    .sylp-manager-cartable-table td:nth-child(1)::before { content: "پرونده"; }
    .sylp-manager-cartable-table td:nth-child(2)::before { content: "کارمند"; }
    .sylp-manager-cartable-table td:nth-child(3)::before { content: "نوع وام"; }
    .sylp-manager-cartable-table td:nth-child(4)::before { content: "مبلغ"; }
    .sylp-manager-cartable-table td:nth-child(5)::before { content: "مرحله"; }
    .sylp-manager-cartable-table td:nth-child(6)::before { content: "وضعیت"; }
    .sylp-manager-cartable-table td:nth-child(7)::before { content: "تاریخ ارجاع"; }
    .sylp-manager-cartable-table td:nth-child(8)::before { content: "عملیات"; }

    .sylp-manager-cartable-detail-link {
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
}


/* LOAN-17.04 manager case detail */
.sylp-manager-case-detail-page {
    display: grid;
    gap: 18px;
}

.sylp-manager-case-topbar,
.sylp-manager-case-panel,
.sylp-manager-case-summary-grid article,
.sylp-manager-case-alert {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(148,163,184,.22);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
    border-radius: 24px;
}

.sylp-manager-case-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px;
    background:
        radial-gradient(circle at top right, rgba(14,165,233,.14), transparent 35%),
        linear-gradient(135deg, #ffffff, #f8fafc);
}

.sylp-manager-case-topbar h2 {
    margin: 7px 0 8px;
    color: #0f172a;
    font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.sylp-manager-case-topbar p {
    margin: 0;
    color: #64748b;
    line-height: 1.9;
}

.sylp-manager-case-topbar a,
.sylp-manager-case-mini-card a,
.sylp-manager-case-file-list a {
    text-decoration: none;
}

.sylp-manager-case-topbar > a {
    flex: 0 0 auto;
    border-radius: 999px;
    background: #0f172a;
    color: #fff;
    padding: 10px 15px;
    font-weight: 900;
}

.sylp-manager-case-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.sylp-manager-case-summary-grid article {
    padding: 18px;
    display: grid;
    gap: 6px;
}

.sylp-manager-case-summary-grid span,
.sylp-manager-case-summary-grid small,
.sylp-manager-case-panel-head span,
.sylp-manager-case-dl dt,
.sylp-manager-case-mini-card span,
.sylp-manager-case-file-list span,
.sylp-manager-case-file-list small,
.sylp-manager-case-log-list span,
.sylp-manager-case-log-list small {
    color: #64748b;
}

.sylp-manager-case-summary-grid strong {
    color: #0f172a;
    font-size: 1.1rem;
}

.sylp-manager-case-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.sylp-manager-case-panel {
    padding: 20px;
}

.sylp-manager-case-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.sylp-manager-case-panel-head strong {
    color: #0f172a;
    font-size: 1.12rem;
}

.sylp-manager-case-dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.sylp-manager-case-dl div,
.sylp-manager-case-mini-card,
.sylp-manager-case-log-list div {
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 18px;
    padding: 12px;
}

.sylp-manager-case-dl dt {
    font-weight: 800;
    margin-bottom: 5px;
}

.sylp-manager-case-dl dd {
    margin: 0;
    color: #0f172a;
    font-weight: 900;
}

.sylp-manager-case-card-list,
.sylp-manager-case-file-list,
.sylp-manager-case-log-list {
    display: grid;
    gap: 12px;
}

.sylp-manager-case-card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sylp-manager-case-mini-card {
    display: grid;
    gap: 7px;
}

.sylp-manager-case-mini-card strong,
.sylp-manager-case-log-list strong {
    color: #0f172a;
}

.sylp-manager-case-mini-card a {
    justify-self: start;
    border-radius: 999px;
    background: #0ea5e9;
    color: #fff;
    padding: 8px 13px;
    font-weight: 900;
}

.sylp-manager-case-timeline {
    display: grid;
    gap: 12px;
}

.sylp-manager-case-timeline-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: #f8fafc;
}

.sylp-manager-case-timeline-item i {
    width: 14px;
    height: 14px;
    margin-top: 6px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 5px #e2e8f0;
}

.sylp-manager-case-timeline-item strong {
    color: #0f172a;
}

.sylp-manager-case-timeline-item span,
.sylp-manager-case-timeline-item small {
    display: block;
    margin-top: 5px;
    color: #64748b;
}

.sylp-manager-case-timeline-item p {
    margin: 8px 0 0;
    color: #475569;
    line-height: 1.8;
}

.sylp-step-active i {
    background: #16a34a;
    box-shadow: 0 0 0 5px #dcfce7;
}

.sylp-step-warning i {
    background: #f59e0b;
    box-shadow: 0 0 0 5px #fef3c7;
}

.sylp-step-danger i {
    background: #ef4444;
    box-shadow: 0 0 0 5px #fee2e2;
}

.sylp-step-done i {
    background: #4f46e5;
    box-shadow: 0 0 0 5px #eef2ff;
}

.sylp-manager-case-file-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.sylp-manager-case-file-list a {
    display: grid;
    gap: 6px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    border-radius: 18px;
    padding: 13px;
    color: #1d4ed8;
}

.sylp-manager-case-alert {
    padding: 16px 18px;
    display: grid;
    gap: 7px;
    color: #475569;
    line-height: 1.9;
}

.sylp-manager-case-alert strong {
    color: #0f172a;
}

.sylp-manager-case-alert-error {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #9f1239;
}

.sylp-manager-case-alert-error strong {
    color: #9f1239;
}

.sylp-manager-case-decision-preview {
    border-color: #bae6fd;
}

@media (max-width: 980px) {
    .sylp-manager-case-summary-grid,
    .sylp-manager-case-grid,
    .sylp-manager-case-card-list,
    .sylp-manager-case-file-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sylp-manager-case-topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .sylp-manager-case-summary-grid,
    .sylp-manager-case-grid,
    .sylp-manager-case-card-list,
    .sylp-manager-case-file-list,
    .sylp-manager-case-dl {
        grid-template-columns: 1fr;
    }

    .sylp-manager-case-topbar,
    .sylp-manager-case-panel {
        padding: 16px;
    }

    .sylp-manager-case-topbar > a {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .sylp-manager-case-panel-head {
        display: grid;
    }
}


/* LOAN-18 manager decision form */
.sylp-manager-decision-form {
    display: grid;
    gap: 16px;
}

.sylp-manager-decision-current-step {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
}

.sylp-manager-decision-current-step span,
.sylp-manager-decision-current-step small,
.sylp-manager-decision-option span,
.sylp-manager-decision-field span {
    color: #64748b;
    font-weight: 800;
}

.sylp-manager-decision-current-step strong {
    color: #0f172a;
    font-size: 1.08rem;
}

.sylp-manager-decision-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sylp-manager-decision-option {
    display: grid;
    gap: 8px;
    align-content: start;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    cursor: pointer;
}

.sylp-manager-decision-option input {
    margin: 0;
}

.sylp-manager-decision-option strong {
    color: #0f172a;
}

.sylp-manager-decision-option-approve {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.sylp-manager-decision-option-correction {
    border-color: #fde68a;
    background: #fffbeb;
}

.sylp-manager-decision-option-reject {
    border-color: #fecdd3;
    background: #fff1f2;
}

.sylp-manager-decision-field {
    display: grid;
    gap: 7px;
}

.sylp-manager-decision-field select,
.sylp-manager-decision-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 12px 13px;
    background: #fff;
    color: #0f172a;
}

.sylp-manager-decision-field textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.9;
}

.sylp-manager-decision-submit {
    justify-self: start;
    border: 0;
    border-radius: 18px;
    padding: 13px 20px;
    background: #0f172a;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.sylp-manager-decision-alert-success {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #166534;
}

.sylp-manager-decision-alert-error {
    border-color: #fecdd3;
    background: #fff1f2;
    color: #9f1239;
}

@media (max-width: 760px) {
    .sylp-manager-decision-actions {
        grid-template-columns: 1fr;
    }

    .sylp-manager-decision-submit {
        width: 100%;
    }
}



/* LOAN-21.01 employee tracking page */
.sylp-tracking-panel,
.sylp-tracking-list {
    display: grid;
    gap: 16px;
}

.sylp-tracking-card {
    display: grid;
    gap: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.sylp-tracking-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.sylp-tracking-card-head strong {
    display: block;
    color: #0f172a;
    font-size: 17px;
}

.sylp-tracking-card-head span,
.sylp-tracking-meta span,
.sylp-tracking-logs span {
    display: block;
    color: #64748b;
    margin-top: 5px;
}

.sylp-tracking-card-head em {
    font-style: normal;
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 900;
    background: #f1f5f9;
    color: #475569;
    white-space: nowrap;
}

.sylp-tracking-success .sylp-tracking-card-head em {
    background: #dcfce7;
    color: #166534;
}

.sylp-tracking-warning .sylp-tracking-card-head em {
    background: #fef3c7;
    color: #92400e;
}

.sylp-tracking-danger .sylp-tracking-card-head em {
    background: #fee2e2;
    color: #991b1b;
}

.sylp-tracking-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.sylp-tracking-meta span {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px;
    background: #f8fafc;
}

.sylp-tracking-pdf,
.sylp-tracking-correction {
    width: fit-content;
    border-radius: 999px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 900;
}

.sylp-tracking-pdf {
    background: #0f172a;
    color: #fff;
}

.sylp-tracking-correction {
    background: #f59e0b;
    color: #111827;
}

.sylp-tracking-timeline {
    display: grid;
    gap: 10px;
}

.sylp-tracking-timeline-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 12px;
    background: #f8fafc;
}

.sylp-tracking-timeline-item i {
    width: 13px;
    height: 13px;
    margin-top: 6px;
    border-radius: 999px;
    background: #94a3b8;
    box-shadow: 0 0 0 5px #e2e8f0;
}

.sylp-tracking-step-success i {
    background: #16a34a;
    box-shadow: 0 0 0 5px #dcfce7;
}

.sylp-tracking-step-warning i {
    background: #f59e0b;
    box-shadow: 0 0 0 5px #fef3c7;
}

.sylp-tracking-step-danger i {
    background: #ef4444;
    box-shadow: 0 0 0 5px #fee2e2;
}

.sylp-tracking-timeline-item span,
.sylp-tracking-timeline-item small {
    display: block;
    margin-top: 4px;
    color: #64748b;
}

.sylp-tracking-logs {
    display: grid;
    gap: 6px;
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    padding: 12px;
    background: #fbfdff;
}

@media (max-width: 760px) {
    .sylp-tracking-card-head,
    .sylp-tracking-meta {
        grid-template-columns: 1fr;
        display: grid;
    }

    .sylp-tracking-card-head em {
        justify-self: start;
    }
}


/* LOAN-22.01 received loans page */
.sylp-received-loans-panel,
.sylp-received-loans-list {
    display: grid;
    gap: 16px;
}

.sylp-received-loan-card {
    display: grid;
    gap: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.sylp-received-loan-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.sylp-received-loan-title strong {
    color: #0f172a;
    font-size: 18px;
}

.sylp-received-loan-title span {
    color: #64748b;
    font-weight: 800;
}

.sylp-received-loan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.sylp-received-loan-grid span {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 10px;
    background: #f8fafc;
    color: #64748b;
}

.sylp-received-loan-grid b {
    display: block;
    margin-top: 5px;
    color: #0f172a;
}

.sylp-received-loan-download {
    width: fit-content;
    border-radius: 999px;
    padding: 10px 14px;
    text-decoration: none;
    font-weight: 900;
    background: #0f172a;
    color: #fff;
}

@media (max-width: 760px) {
    .sylp-received-loan-title,
    .sylp-received-loan-grid {
        display: grid;
        grid-template-columns: 1fr;
    }
}


/* LOAN-23.02 service form manager review */
.sylp-service-review-page,.sylp-service-review-list{display:grid;gap:16px}
.sylp-service-review-head,.sylp-service-review-card-top,.sylp-service-review-tabs,.sylp-service-review-actions{display:flex;gap:12px;align-items:stretch;justify-content:space-between;flex-wrap:wrap}
.sylp-service-review-head,.sylp-service-review-card{border:1px solid #e2e8f0;border-radius:24px;background:#fff;padding:18px;box-shadow:0 14px 34px rgba(15,23,42,.06)}
.sylp-service-review-head h2{margin:6px 0;color:#0f172a}
.sylp-service-review-tabs a{flex:1 1 160px;text-decoration:none;border:1px solid #e2e8f0;border-radius:18px;padding:12px;background:#fff;color:#334155;font-weight:900}
.sylp-service-review-tabs a.is-active{background:#0f172a;color:#fff}
.sylp-service-review-tabs span{float:left}
.sylp-service-review-card{display:grid;gap:14px}
.sylp-service-review-card-top strong{display:block;color:#0f172a;font-size:17px}
.sylp-service-review-card-top em{font-style:normal;border-radius:999px;padding:8px 12px;background:#eff6ff;color:#1d4ed8;font-weight:900}
.sylp-service-review-card-danger .sylp-service-review-card-top em{background:#fef2f2;color:#b91c1c}
.sylp-service-review-card-warning .sylp-service-review-card-top em{background:#fffbeb;color:#b45309}
.sylp-service-review-card-done .sylp-service-review-card-top em{background:#ecfdf5;color:#047857}
.sylp-service-review-grid,.sylp-service-review-payload div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sylp-service-review-grid span,.sylp-service-review-payload span{display:block;border:1px solid #e2e8f0;border-radius:16px;background:#f8fafc;padding:10px;color:#64748b}
.sylp-service-review-grid b,.sylp-service-review-payload b{display:block;margin-top:5px;color:#0f172a}
.sylp-service-review-decision-form{display:grid;gap:12px;border-top:1px dashed #cbd5e1;padding-top:14px}
.sylp-service-review-actions label,.sylp-service-review-field{flex:1 1 180px;display:grid;gap:7px;border:1px solid #e2e8f0;border-radius:18px;background:#f8fafc;padding:12px}
.sylp-service-review-field select,.sylp-service-review-field textarea{width:100%;border:1px solid #cbd5e1;border-radius:14px;padding:10px;font-family:inherit}
.sylp-service-review-decision-form button{width:fit-content;border:0;border-radius:999px;padding:11px 18px;background:#0f172a;color:#fff;font-weight:900;cursor:pointer}
@media (max-width:760px){.sylp-service-review-grid,.sylp-service-review-payload div{grid-template-columns:1fr}}

/* LOAN-23.02K compact service form review polish */
.sylp-service-review-page {
    gap: 12px;
}

.sylp-service-review-head {
    padding: 14px 16px;
    border-radius: 20px;
}

.sylp-service-review-head h2 {
    margin: 4px 0;
    font-size: 1.25rem;
}

.sylp-service-review-head p {
    margin: 0;
    color: #64748b;
    line-height: 1.8;
}

.sylp-service-review-list {
    gap: 12px;
}

.sylp-service-review-card {
    padding: 14px;
    border-radius: 20px;
    gap: 10px;
}

.sylp-service-review-card-top {
    align-items: center;
}

.sylp-service-review-card-top strong {
    font-size: 15px;
}

.sylp-service-review-card-top em {
    padding: 6px 10px;
    font-size: 12px;
}

.sylp-service-review-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.sylp-service-review-grid span {
    padding: 8px 10px;
    border-radius: 14px;
    font-size: 12px;
}

.sylp-service-review-grid b {
    margin-top: 3px;
    font-size: 13px;
}

.sylp-service-review-payload-compact {
    display: grid;
    gap: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #f8fafc;
    padding: 10px;
}

.sylp-service-review-payload-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.sylp-service-review-payload-head strong {
    color: #0f172a;
}

.sylp-service-review-payload-head small {
    color: #64748b;
}

.sylp-service-review-payload-compact div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.sylp-service-review-payload-compact span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    padding: 6px 9px;
    color: #64748b;
    font-size: 12px;
}

.sylp-service-review-payload-compact i {
    font-style: normal;
    color: #64748b;
}

.sylp-service-review-payload-compact b {
    color: #0f172a;
    margin: 0;
}

.sylp-service-review-decision-form {
    gap: 9px;
    padding-top: 10px;
}

.sylp-service-review-actions {
    gap: 8px;
}

.sylp-service-review-actions label,
.sylp-service-review-field {
    padding: 9px 10px;
    border-radius: 15px;
    flex: 1 1 150px;
}

.sylp-service-review-field textarea {
    min-height: 76px;
}

@media (max-width: 760px) {
    .sylp-service-review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sylp-service-review-payload-compact span {
        width: 100%;
        justify-content: space-between;
    }
}


/* LOAN-33.01I — Visual review full-page dashboard overrides */
body:has(.sylp-dashboard-shell),
body:has(.sylp-public-wrap),
body:has(.sylp-manager-dashboard),
body:has(.sylp-dashboard-shell) .wp-site-blocks,
body:has(.sylp-public-wrap) .wp-site-blocks {
    background: #f5f7fb !important;
}

body:has(.sylp-dashboard-shell) header,
body:has(.sylp-public-wrap) header,
body:has(.sylp-dashboard-shell) footer,
body:has(.sylp-public-wrap) footer,
body:has(.sylp-dashboard-shell) .wp-block-template-part,
body:has(.sylp-public-wrap) .wp-block-template-part {
    display: none !important;
}

body:has(.sylp-dashboard-shell) main,
body:has(.sylp-public-wrap) main,
body:has(.sylp-dashboard-shell) .wp-site-blocks,
body:has(.sylp-public-wrap) .wp-site-blocks {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

body:has(.sylp-dashboard-shell) .entry-content,
body:has(.sylp-public-wrap) .entry-content,
body:has(.sylp-dashboard-shell) .wp-block-post-content,
body:has(.sylp-public-wrap) .wp-block-post-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
}

.sylp-dashboard-shell {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 28px 18px !important;
    min-height: 100vh;
    font-family: Tahoma, Arial, sans-serif !important;
    color: #0f172a;
}

.sylp-dashboard-main {
    min-width: 0;
}

.sylp-dashboard-sidebar {
    position: sticky;
    top: 18px;
    align-self: start;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.sylp-dashboard-hero,
.sylp-dashboard-panel,
.sylp-dashboard-stat,
.sylp-dashboard-action-card,
.sylp-dashboard-alert {
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.sylp-dashboard-home-hero {
    align-items: center;
}

.sylp-dashboard-hero h1,
.sylp-dashboard-page-hero h1 {
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.35;
}

.sylp-dashboard-hero p,
.sylp-dashboard-panel p,
.sylp-dashboard-action-card p {
    font-size: 15px;
    line-height: 2;
}

.sylp-dashboard-menu a,
.sylp-dashboard-page-cta,
.sylp-public-button {
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.sylp-dashboard-menu a:hover,
.sylp-dashboard-page-cta:hover,
.sylp-public-button:hover {
    transform: translateY(-1px);
}

@media (max-width: 900px) {
    .sylp-dashboard-shell {
        padding: 14px !important;
    }

    .sylp-dashboard-sidebar {
        position: static;
    }
}

@media (max-width: 560px) {
    .sylp-dashboard-shell {
        padding: 10px !important;
    }

    .sylp-dashboard-hero,
    .sylp-dashboard-panel,
    .sylp-dashboard-stat,
    .sylp-dashboard-action-card {
        border-radius: 20px;
    }
}


/* LOAN-33.01L — prevent dashboard horizontal overflow */
body:has(.sylp-dashboard-shell),
body:has(.sylp-public-wrap) {
    overflow-x: hidden !important;
}

body:has(.sylp-dashboard-shell) .wp-site-blocks,
body:has(.sylp-public-wrap) .wp-site-blocks,
body:has(.sylp-dashboard-shell) main,
body:has(.sylp-public-wrap) main,
body:has(.sylp-dashboard-shell) .entry-content,
body:has(.sylp-public-wrap) .entry-content,
body:has(.sylp-dashboard-shell) .wp-block-post-content,
body:has(.sylp-public-wrap) .wp-block-post-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
    box-sizing: border-box !important;
}

.sylp-dashboard-shell,
.sylp-dashboard-shell *,
.sylp-public-wrap,
.sylp-public-wrap * {
    box-sizing: border-box;
}

.sylp-dashboard-shell {
    width: min(1240px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    grid-template-columns: 230px minmax(0, 1fr);
    overflow-x: clip;
}

.sylp-dashboard-main,
.sylp-dashboard-sidebar,
.sylp-dashboard-hero,
.sylp-dashboard-panel,
.sylp-dashboard-menu,
.sylp-dashboard-menu a {
    min-width: 0;
}

.sylp-dashboard-menu a,
.sylp-dashboard-brand,
.sylp-dashboard-hero p,
.sylp-dashboard-panel p {
    overflow-wrap: anywhere;
}

@media (max-width: 900px) {
    .sylp-dashboard-shell {
        width: min(100%, calc(100vw - 24px)) !important;
        max-width: calc(100vw - 24px) !important;
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 560px) {
    .sylp-dashboard-shell {
        width: min(100%, calc(100vw - 16px)) !important;
        max-width: calc(100vw - 16px) !important;
    }
}


/* LOAN-33.02B — compact visual layout for employee loan request page */
.sylp-dashboard-section-loan-request .sylp-dashboard-page-hero,
.sylp-dashboard-section-guarantees .sylp-dashboard-page-hero,
.sylp-dashboard-section-tracking .sylp-dashboard-page-hero,
.sylp-dashboard-section-documents .sylp-dashboard-page-hero {
    min-height: 0 !important;
    padding: 30px 34px !important;
    align-items: center !important;
}

.sylp-dashboard-section-loan-request .sylp-dashboard-page-hero {
    grid-template-columns: minmax(0, 1fr) 220px !important;
}

.sylp-dashboard-section-loan-request .sylp-dashboard-page-hero h1,
.sylp-dashboard-section-guarantees .sylp-dashboard-page-hero h1,
.sylp-dashboard-section-tracking .sylp-dashboard-page-hero h1,
.sylp-dashboard-section-documents .sylp-dashboard-page-hero h1 {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.sylp-dashboard-section-loan-request .sylp-dashboard-page-hero p,
.sylp-dashboard-section-guarantees .sylp-dashboard-page-hero p,
.sylp-dashboard-section-tracking .sylp-dashboard-page-hero p,
.sylp-dashboard-section-documents .sylp-dashboard-page-hero p {
    max-width: 680px;
}

.sylp-dashboard-section-loan-request .sylp-dashboard-page-status {
    align-self: center !important;
}

.sylp-dashboard-section-loan-request .sylp-dashboard-page-panel,
.sylp-dashboard-section-guarantees .sylp-dashboard-page-panel,
.sylp-dashboard-section-tracking .sylp-dashboard-page-panel,
.sylp-dashboard-section-documents .sylp-dashboard-page-panel {
    padding: 22px 26px !important;
}

@media (max-width: 900px) {
    .sylp-dashboard-section-loan-request .sylp-dashboard-page-hero {
        grid-template-columns: 1fr !important;
        padding: 24px 22px !important;
    }

    .sylp-dashboard-section-loan-request .sylp-dashboard-page-status {
        width: 100%;
    }
}


/* LOAN-33.02E — prevent main dashboard cards from stretching to sidebar height */
.sylp-dashboard-shell {
    align-items: start !important;
}

.sylp-dashboard-main {
    align-self: start !important;
    align-content: start !important;
    grid-auto-rows: max-content !important;
}

.sylp-dashboard-hero,
.sylp-dashboard-page-hero,
.sylp-dashboard-panel,
.sylp-dashboard-page-panel {
    align-self: start !important;
}

.sylp-dashboard-section-loan-request .sylp-dashboard-page-hero,
.sylp-dashboard-section-guarantees .sylp-dashboard-page-hero,
.sylp-dashboard-section-tracking .sylp-dashboard-page-hero,
.sylp-dashboard-section-documents .sylp-dashboard-page-hero {
    height: auto !important;
}



/* LOAN-33.04AF30 locked employee dashboard cards */
.sylp-dashboard-card-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #f1f5f9;
    color: #64748b;
    font-weight: 900;
    cursor: not-allowed;
    opacity: 0.7;
}
.sylp-dashboard-card.locked,
.sylp-dashboard-card.sylp-tone-locked {
    opacity: 0.62;
    filter: grayscale(0.35);
}


/* LOAN-33.04AF-31F: cleaner employee dashboard menu, menu locks, duplicate card removal */
.sylp-dashboard-menu a,
.sylp-dashboard-menu .sylp-menu-item {
    font-size: 15px !important;
    line-height: 1.6 !important;
    font-weight: 700 !important;
    padding: 11px 13px !important;
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-radius: 14px;
}

.sylp-dashboard-menu .sylp-menu-label {
    flex: 1 1 auto;
}

.sylp-dashboard-menu .sylp-menu-item.is-locked {
    color: #94a3b8 !important;
    background: #f8fafc !important;
    border: 1px dashed #d7dee8 !important;
    cursor: not-allowed;
    opacity: .86;
}

.sylp-dashboard-menu .sylp-menu-item.is-locked .sylp-menu-icon {
    opacity: .52;
}

.sylp-menu-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #eef2f7;
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.sylp-dashboard-actions {
    display: none !important;
}


/* loan-request-v37r2-final-fixes */
.sylp-loan-request-detail-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    align-items: stretch !important;
}

.sylp-loan-request-detail-grid > .sylp-loan-detail-card {
    min-width: 0 !important;
    border: 1px solid rgba(148, 163, 184, 0.22) !important;
    background: #fff !important;
    border-radius: 16px !important;
    padding: 14px 16px !important;
    min-height: 88px !important;
}

.sylp-loan-request-detail-grid > .sylp-loan-detail-guarantee-row {
    grid-column: 1 / -1 !important;
}

.sylp-loan-request-detail-grid span {
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
    color: #64748b !important;
}

.sylp-loan-request-detail-grid strong {
    display: block !important;
    font-size: 14px !important;
    line-height: 1.9 !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    white-space: normal !important;
}

.sylp-dashboard-form-wrap .gform_wrapper .gfield input[type="text"],
.sylp-dashboard-form-wrap .gform_wrapper .gfield input[type="number"],
.sylp-dashboard-form-wrap .gform_wrapper .gfield input[type="tel"],
.sylp-dashboard-form-wrap .gform_wrapper .gfield input[type="email"],
.sylp-dashboard-form-wrap .gform_wrapper .gfield select {
    height: 46px !important;
    min-height: 46px !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-right: 14px !important;
    padding-left: 14px !important;
    line-height: 46px !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
}

.sylp-dashboard-form-wrap .gform_wrapper .gfield textarea {
    min-height: 120px !important;
    padding: 12px 14px !important;
    line-height: 1.9 !important;
    font-size: 14px !important;
    box-sizing: border-box !important;
}

.sylp-dashboard-form-wrap .gform_wrapper .gfield_label {
    margin-bottom: 8px !important;
    line-height: 1.8 !important;
}

@media (max-width: 760px) {
    .sylp-loan-request-detail-grid {
        grid-template-columns: 1fr !important;
    }

    .sylp-loan-request-detail-grid > .sylp-loan-detail-guarantee-row {
        grid-column: auto !important;
    }
}


/* LOAN-TRACKING-01: tune tracking page font sizes */
.sylp-tracking-panel .sylp-dashboard-panel-head strong {
    font-size: 18px !important;
    line-height: 1.8 !important;
    font-weight: 700 !important;
}

.sylp-tracking-panel .sylp-dashboard-panel-head span {
    font-size: 13px !important;
    line-height: 1.9 !important;
    font-weight: 400 !important;
}

.sylp-tracking-panel .sylp-tracking-card-head strong {
    font-size: 16px !important;
    line-height: 1.8 !important;
    font-weight: 700 !important;
}

.sylp-tracking-panel .sylp-tracking-card-head span {
    font-size: 13px !important;
    line-height: 1.8 !important;
    font-weight: 400 !important;
}

.sylp-tracking-panel .sylp-tracking-card-head em {
    font-size: 13px !important;
    line-height: 1.8 !important;
    font-weight: 600 !important;
    font-style: normal !important;
}

.sylp-tracking-panel .sylp-tracking-meta span {
    font-size: 13px !important;
    line-height: 1.9 !important;
    font-weight: 400 !important;
}

@media (max-width: 781px) {
    .sylp-tracking-panel .sylp-dashboard-panel-head strong {
        font-size: 16px !important;
    }

    .sylp-tracking-panel .sylp-dashboard-panel-head span,
    .sylp-tracking-panel .sylp-tracking-card-head span,
    .sylp-tracking-panel .sylp-tracking-card-head em,
    .sylp-tracking-panel .sylp-tracking-meta span {
        font-size: 12.5px !important;
    }

    .sylp-tracking-panel .sylp-tracking-card-head strong {
        font-size: 15px !important;
    }
}

