/* Santej Production User PMR Management Stylesheet */

.prod-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1A1A1A;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

/* Header */
.prod-header {
    margin-bottom: 4px;
}

.prod-header.flex-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}

.prod-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

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

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

/* Filter Row (6 Dropdowns wrapped in white card container) */
.prod-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%;
}

.prod-select-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
    box-sizing: border-box;
}

.prod-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;
}

.prod-filter-select:focus {
    outline: none;
    border-color: #9CA3AF;
    box-shadow: 0 0 0 2px rgba(108, 117, 125, 0.2);
}

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

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

/* Table Card Container */
.prod-table-card {
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.prod-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
}

.prod-table thead {
    background-color: var(--page-bg, #F2F2F2);
    border-bottom: 1px solid #EAEAEA;
}

.prod-table th {
    padding: 12px 14px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-style: normal !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #555555 !important;
    text-align: left;
    background-color: var(--page-bg, #F2F2F2);
}

.prod-table td {
    padding: 12px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #F1F5F9;
    color: #151515;
}

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

/* PMR No Bold link */
.prod-pmr-no {
    font-weight: 400;
    color: #1A1A1A;
}



/* Action Eye Icon Button - Matching Standard PMR Pages */
.action-view-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;
}

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

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

/* Pagination Footer */
.prod-pagination-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid #EAEAEA;
    background-color: #FFFFFF;
}

.prod-pagination-info {
    font-size: 12px;
    color: #9CA3AF;
}

.prod-pagination-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.prod-pagination-btn {
    min-width: 28px;
    height: 28px;
    border: 1px solid #E2E8F0;
    background-color: #FFFFFF;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: #333333;
    cursor: pointer;
    transition: all 0.15s ease;
}

.prod-pagination-btn:hover:not(:disabled) {
    background-color: #F8FAFC;
    border-color: #CBD5E1;
}

.prod-pagination-btn.active {
    background-color: #FF0000;
    border-color: #FF0000;
    color: #FFFFFF;
}

.prod-pagination-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.prod-pagination-btn svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}


/* ============================================================
   RESPONSIVE (Laptop & Desktop: 1200px – 1920px)
   Filters (PMRDropdownComponent) and table (PmrList) are shared and
   already responsive via santej-pmr-management.css; this only aligns
   the page header with the Admin PMR list on small laptops.
   ============================================================ */
@media (max-width: 1280px) {
    .prod-container {
        gap: 12px;
    }

    .prod-title {
        font-size: 18px;
    }

    .prod-header-actions {
        gap: 8px;
    }
}
