﻿.erp-system-page {
    width: 100%;
    min-height: 100%;
    padding: 20px 24px 32px;
    background: #f5f7fa;
    color: #111827;
}

.erp-page-header {
    min-height: 110px;
    padding: 22px 26px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(90deg, rgba(0,31,63,.92), rgba(0,31,63,.50)), linear-gradient(135deg, #2c3137 0%, #536879 100%);
    color: #ffffff;
}

    .erp-page-header span {
        display: block;
        margin-bottom: 8px;
        color: rgba(255,255,255,.72);
        font-size: 12px;
    }

    .erp-page-header h1 {
        margin: 0;
        font-size: 26px;
        line-height: 1.2;
    }

    .erp-page-header p {
        margin: 8px 0 0;
        color: rgba(255,255,255,.82);
        font-size: 13px;
    }

.erp-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.erp-system-card,
.erp-system-panel {
    background: #ffffff;
    border: 1px solid #dfe5ee;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.erp-system-card {
    min-height: 120px;
    padding: 18px;
    color: #111827;
    text-decoration: none;
}

    .erp-system-card:hover {
        border-color: #0a6ed1;
        background: #f3f8ff;
    }

    .erp-system-card strong {
        display: block;
        font-size: 15px;
        margin-bottom: 8px;
    }

    .erp-system-card span {
        display: block;
        color: #667085;
        font-size: 13px;
        line-height: 1.45;
    }

    .erp-system-card small {
        display: inline-flex;
        margin-top: 14px;
        padding: 4px 8px;
        background: #eef6ff;
        color: #0a6ed1;
        font-size: 11px;
        font-weight: 700;
    }

.erp-system-panel {
    padding: 18px;
    margin-bottom: 18px;
}

    .erp-system-panel.narrow {
        max-width: 560px;
    }

    .erp-system-panel h2 {
        margin: 0 0 16px;
        font-size: 18px;
    }

.erp-two-column {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 16px;
}

.erp-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

    .erp-form-grid.single {
        grid-template-columns: 1fr;
    }

    .erp-form-grid label {
        display: flex;
        flex-direction: column;
        gap: 6px;
        color: #344054;
        font-size: 13px;
        font-weight: 700;
    }

    .erp-form-grid .span-2 {
        grid-column: span 2;
    }

    .erp-form-grid input,
    .erp-form-grid select,
    .erp-form-grid textarea {
        min-height: 36px;
        border: 1px solid #cbd5e1;
        padding: 8px 10px;
        font-size: 13px;
        outline: none;
    }

    .erp-form-grid textarea {
        min-height: 100px;
        resize: vertical;
    }

        .erp-form-grid input:focus,
        .erp-form-grid select:focus,
        .erp-form-grid textarea:focus {
            border-color: #0a6ed1;
        }

.erp-actions-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

    .erp-actions-row button,
    .link-btn {
        height: 34px;
        border: 1px solid #cbd5e1;
        background: #ffffff;
        color: #111827;
        padding: 0 14px;
        cursor: pointer;
        font-size: 13px;
        font-weight: 700;
    }

        .erp-actions-row button.primary,
        .link-btn.primary {
            background: #0a6ed1;
            border-color: #0a6ed1;
            color: #ffffff;
        }

.link-btn {
    height: 28px;
    margin-right: 6px;
}

    .link-btn.danger {
        color: #b42318;
    }

.erp-message {
    margin-top: 14px;
    padding: 10px 12px;
    font-size: 13px;
    border: 1px solid;
}

    .erp-message.success {
        background: #ecfdf3;
        color: #027a48;
        border-color: #abefc6;
    }

    .erp-message.error {
        background: #fef3f2;
        color: #b42318;
        border-color: #fecdca;
    }

.erp-list {
    margin: 0;
    padding-left: 18px;
    color: #475467;
    line-height: 1.8;
    font-size: 13px;
}

.erp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

    .erp-table th,
    .erp-table td {
        padding: 10px 12px;
        border-bottom: 1px solid #e5e7eb;
        text-align: left;
    }

    .erp-table th {
        color: #344054;
        background: #f8fafc;
        font-weight: 800;
    }

.badge {
    display: inline-flex;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 800;
}

    .badge.pending {
        background: #fff7ed;
        color: #c2410c;
    }

.erp-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

    .erp-info-list div {
        padding: 12px;
        background: #f8fafc;
        border: 1px solid #e5e7eb;
    }

    .erp-info-list span {
        display: block;
        color: #667085;
        font-size: 12px;
        margin-bottom: 6px;
    }

    .erp-info-list strong {
        color: #111827;
        font-size: 13px;
    }

.erp-profile-large {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
}

    .erp-profile-large .avatar {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background: #0a6ed1;
        color: #ffffff;
        display: grid;
        place-items: center;
        font-weight: 800;
    }

    .erp-profile-large strong,
    .erp-profile-large span,
    .erp-profile-large small {
        display: block;
    }

    .erp-profile-large span {
        color: #667085;
        font-size: 13px;
        margin-top: 3px;
    }

    .erp-profile-large small {
        margin-top: 6px;
        color: #0a6ed1;
        font-weight: 800;
    }

.erp-setting-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .erp-setting-list label {
        min-height: 54px;
        padding: 10px 12px;
        border: 1px solid #e5e7eb;
        background: #f8fafc;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
    }

    .erp-setting-list strong,
    .erp-setting-list small {
        display: block;
    }

    .erp-setting-list small {
        margin-top: 3px;
        color: #667085;
    }

@media (max-width: 1100px) {
    .erp-card-grid,
    .erp-two-column {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .erp-system-page {
        padding: 14px;
    }

    .erp-card-grid,
    .erp-two-column,
    .erp-form-grid,
    .erp-info-list {
        grid-template-columns: 1fr;
    }

        .erp-form-grid .span-2 {
            grid-column: auto;
        }
}
