/* Santej Lab User PMR Management Stylesheet */

.lab-pmr-container {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333333;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

/* Page Header */
.lab-pmr-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.lab-pmr-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.lab-pmr-desc {
    font-size: 12px;
    font-weight: 400;
    color: #9ca3af;
    margin: 0;
    line-height: 1.3;
}

/* Header Stat Badges */
.lab-header-badges {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lab-stat-badge-revised {
    background-color: #FBE9E9;
    color: #DC2626;
    border: 1px solid #E87F7F;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.lab-stat-badge-revised strong {
    font-size: 14px;
    font-weight: 500;
    color: #151515;
    line-height: 1;
}

.lab-stat-badge-total {
    background-color: #E8F6ED;
    color: #16A34A;
    border: 1px solid #7DCA95;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1;
}

.lab-stat-badge-total strong {
    font-size: 14px;
    font-weight: 500;
    color: #151515;
    line-height: 1;
}

/* Filter Row Section */
.lab-pmr-filter-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    background-color: #ffffff;
    padding: 10px 16px;
    border-radius: 6px;
    border: 1px solid #d9e0e7;
    box-sizing: border-box;
    align-items: center;
    height: 65px;
    width: 100%;
}

.lab-filter-item {
    flex: 1;
    min-width: 0;
    position: relative;
    box-sizing: border-box;
}

.lab-filter-select {
    width: 100%;
    height: 36px;
    padding: 0 24px 0 10px;
    font-size: 11px;
    color: #555555;
    background-color: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    box-sizing: border-box;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.lab-filter-select:focus {
    outline: none;
    border-color: #cbd5e1;
}

.lab-filter-chevron {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    display: flex;
    align-items: center;
    color: #999999;
}

.lab-filter-chevron svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
}

/* PMR Table Styles */
.lab-pmr-table-wrapper {
    background-color: #ffffff;
    border-radius: 6px;
    border: 1px solid #e1e5ea;
    overflow-x: auto;
    box-sizing: border-box;
}

.lab-pmr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
    text-align: center;
}

.lab-pmr-table th {
    background-color: #f8fafc;
    color: #555555;
    font-weight: 500;
    padding: 10px 12px;
    border-bottom: 1px solid #e1e5ea;
    white-space: nowrap;
    height: 45px;
    box-sizing: border-box;
    text-align: left;
}

.lab-pmr-table th.center-col {
    text-align: center;
}

.lab-pmr-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #333333;
    white-space: nowrap;
    vertical-align: middle;
    height: 50px;
    box-sizing: border-box;
    text-align: left;
}

.lab-pmr-table td.center-col {
    text-align: center;
}

.lab-pmr-table tr:last-child td {
    border-bottom: none;
}

/* Product Link Style */
.lab-product-link {
    color: #0f172a;
    text-decoration: underline;
    text-decoration-color: #cbd5e1;
    text-underline-offset: 2px;
    font-weight: 500;
    cursor: pointer;
}

.lab-product-link:hover {
    color: #2563eb;
    text-decoration-color: #2563eb;
}

/* Exact Status Badge Dimensions (Matching existing height & width) */
.lab-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: 500;
    min-width: 105px;
    width: 105px;
    height: 26px;
    box-sizing: border-box;
    line-height: 1;
    white-space: nowrap;
}

/* Status Themes */
.lab-status-material-added {
    background-color: #F2F2F2;
    border: 1px solid #999999;
    color: #888888;
}

.lab-status-revised {
    background-color: #D3E2FF;
    border: 1px solid #3776EA;
    color: #3776EA;
}

.lab-status-costing-done {
    background-color: #F3E8FA;
    border: 1px solid #8E44AD;
    color: #8E44AD;
}

.lab-status-negotiating {
    background-color: #F4EFED;
    border: 1px solid #8D6E63;
    color: #8D6E63;
}

.lab-status-in-production {
    background-color: #FFE3FF;
    border: 1px solid #CC00CF;
    color: #CC00CF;
}

.lab-status-price-approved {
    background-color: #FDE6F1;
    border: 1px solid #E84393;
    color: #E84393;
}

.lab-status-completed {
    background-color: #E8F6ED;
    border: 1px solid #16A34A;
    color: #16A34A;
}

/* Action Button - Standard Module Design */
.lab-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid #EAEAEA;
    background-color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
    box-sizing: border-box;
}

.lab-action-btn:hover {
    background-color: #fee2e2;
    border-color: #f87171;
}

.lab-action-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: #ef4444;
    stroke-width: 2;
}

/* Pagination Style */
.lab-pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background-color: #ffffff;
    border-top: 1px solid #e1e5ea;
    box-sizing: border-box;
}

.lab-pagination-info {
    font-size: 11px;
    color: #94a3b8;
    font-weight: 500;
}

.lab-pagination-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.lab-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 11px;
    font-weight: 600;
    color: #1a1a1a;
    background-color: #ffffff;
    border: 1px solid #d9e0e7;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.lab-pagination-btn:hover:not(.active):not(.disabled) {
    background-color: #f8fafc;
    border-color: #cbd5e1;
}

.lab-pagination-btn.active {
    background-color: #ff0000;
    border-color: #ff0000;
    color: #ffffff;
}

.lab-pagination-btn.disabled {
    color: #cbd5e1;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

.lab-pagination-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
}
