﻿.op-page {
    padding: 22px;
    background: #f5f7fb;
    min-height: 100vh;
    color: #1f2937;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.op-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

    .op-header h3 {
        margin: 0;
        font-size: 24px;
        font-weight: 700;
    }

    .op-header p {
        margin: 4px 0 0;
        color: #64748b;
        font-size: 14px;
    }

.op-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #475569;
    font-size: 13px;
}

.op-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #dbeafe;
    color: #2563eb;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.op-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 18px;
}

.op-summary-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
}

    .op-summary-card span {
        display: block;
        color: #64748b;
        font-size: 13px;
        margin-bottom: 4px;
    }

    .op-summary-card strong {
        font-size: 22px;
        font-weight: 700;
    }

.op-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

    .op-icon.blue {
        background: #dbeafe;
        color: #2563eb;
    }

    .op-icon.yellow {
        background: #fef3c7;
        color: #d97706;
    }

    .op-icon.purple {
        background: #ede9fe;
        color: #7c3aed;
    }

    .op-icon.green {
        background: #dcfce7;
        color: #16a34a;
    }

    .op-icon.gray {
        background: #f1f5f9;
        color: #64748b;
    }

.op-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.04);
    margin-bottom: 18px;
}

.op-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

    .op-card-header.no-padding {
        margin-bottom: 12px;
    }

    .op-card h5,
    .op-card h6,
    .op-card-header h5,
    .op-card-header h6 {
        margin: 0;
        font-weight: 700;
    }

.op-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.op-search {
    height: 36px;
    width: 260px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    background: #fff;
}

    .op-search i {
        color: #94a3b8;
    }

    .op-search input {
        border: 0;
        outline: 0;
        width: 100%;
        font-size: 13px;
    }

.op-filter-btn,
.op-icon-btn,
.op-back-btn {
    border: 0;
    background: #f1f5f9;
    color: #2563eb;
    border-radius: 8px;
    height: 34px;
    padding: 0 12px;
    cursor: pointer;
}

.op-icon-btn {
    width: 34px;
    padding: 0;
    margin: 0 2px;
}

.op-back-btn {
    color: #475569;
    font-size: 13px;
}

.op-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: auto;
    max-height: 420px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

    .op-table-scroll.small {
        max-height: 260px;
    }

.op-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    background: #fff;
}

    .op-table thead th {
        position: sticky;
        top: 0;
        z-index: 2;
        background: #f8fafc;
        color: #334155;
        font-size: 13px;
        font-weight: 700;
        text-align: left;
        padding: 13px 14px;
        border-bottom: 1px solid #e5e7eb;
        white-space: nowrap;
    }

    .op-table tbody td {
        padding: 13px 14px;
        font-size: 13px;
        color: #334155;
        border-bottom: 1px solid #e5e7eb;
        white-space: nowrap;
    }

    .op-table tbody tr:hover {
        background: #f8fafc;
    }

.op-table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    color: #64748b;
    font-size: 13px;
}

.op-pagination {
    display: flex;
    gap: 6px;
}

    .op-pagination button {
        border: 0;
        background: transparent;
        color: #475569;
        width: 30px;
        height: 30px;
        border-radius: 8px;
        cursor: pointer;
    }

        .op-pagination button.active {
            background: #dbeafe;
            color: #2563eb;
            font-weight: 700;
        }

.op-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

    .op-badge.ready {
        background: #dcfce7;
        color: #15803d;
    }

    .op-badge.indent {
        background: #fef3c7;
        color: #b45309;
    }

    .op-badge.warning {
        background: #fef3c7;
        color: #b45309;
    }

    .op-badge.success {
        background: #dcfce7;
        color: #15803d;
    }

    .op-badge.blue {
        background: #dbeafe;
        color: #2563eb;
    }

.op-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
}

.op-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.op-info-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
}

    .op-info-box h6 {
        margin-bottom: 12px;
    }

    .op-info-box p {
        margin: 8px 0 0;
        color: #475569;
        font-size: 13px;
    }

.op-info-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    margin-bottom: 9px;
    font-size: 13px;
}

    .op-info-row span {
        color: #64748b;
    }

    .op-info-row strong {
        color: #1f2937;
        font-weight: 600;
    }

.op-action-box,
.op-upload-box {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fff;
}

    .op-action-box h6 {
        margin-bottom: 12px;
    }

.op-btn {
    border: 0;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    margin-right: 8px;
}

    .op-btn.success {
        background: #22c55e;
        color: #fff;
    }

    .op-btn.danger {
        background: #e11d48;
        color: #fff;
    }

    .op-btn.primary {
        background: #2563eb;
        color: #fff;
    }

    .op-btn.full {
        width: 100%;
        margin-right: 0;
    }

.op-info-alert {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 12px;
}

.op-timeline {
    position: relative;
    margin-top: 18px;
}

.op-timeline-item {
    position: relative;
    display: flex;
    gap: 12px;
    padding-bottom: 28px;
}

    .op-timeline-item::before {
        content: "";
        position: absolute;
        left: 7px;
        top: 18px;
        width: 2px;
        height: calc(100% - 10px);
        background: #e5e7eb;
    }

    .op-timeline-item:last-child::before {
        display: none;
    }

    .op-timeline-item span {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        background: #cbd5e1;
        margin-top: 2px;
        flex: none;
    }

    .op-timeline-item.active span {
        background: #22c55e;
    }

    .op-timeline-item strong {
        font-size: 13px;
        color: #334155;
    }

    .op-timeline-item p {
        margin: 4px 0 0;
        font-size: 12px;
        color: #94a3b8;
    }

.text-center {
    text-align: center !important;
}

.mt-3 {
    margin-top: 16px !important;
}

@media (max-width: 1200px) {
    .op-summary-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .op-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .op-header,
    .op-card-header,
    .op-table-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .op-summary-grid,
    .op-info-grid {
        grid-template-columns: 1fr;
    }

    .op-search {
        width: 100%;
    }

    .op-actions {
        width: 100%;
    }
}

.op-table-scroll {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 420px;
}

.op-table {
    min-width: 1100px;
}

    .op-table thead th {
        position: sticky;
        top: 0;
    }


.op-textarea {
    width: 100%;
    min-height: 90px;
    margin-top: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    resize: vertical;
    font-size: 13px;
    outline: none;
}

    .op-textarea:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    }