/* Santej Production User PMR Details Page Stylesheet */

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

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

.prod-detail-header-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

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

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



/* 2-Column Main Grid Layout */
.prod-detail-main-grid {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    width: 100%;
}

@media (max-width: 992px) {
    .prod-detail-main-grid {
        flex-direction: column;
    }
    .prod-left-info-card {
        width: 100% !important;
        flex: 1 1 100% !important;
    }
}

/* Left PMR Information Card */
.prod-left-info-card {
    flex: 0 0 240px;
    width: 240px;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
    padding: 16px;
    box-sizing: border-box;
}

.prod-info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.prod-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-bottom: 12px;
    border-bottom: 1px solid #F1F5F9;
}

.prod-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.prod-info-label {
    font-size: 11.5px;
    font-weight: 600;
    color: #333333;
}

.prod-info-value {
    font-size: 12.5px;
    font-weight: 400;
    color: #808080;
    line-height: 1.4;
}

/* Right Main Content Card */
.prod-right-content-card {
    flex: 1;
    background-color: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.04), 0 1px 2px -1px rgba(15, 23, 42, 0.03);
    padding: 20px 24px;
    box-sizing: border-box;
    min-width: 0;
}

.prod-card-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.prod-card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 2px 0;
}

/* Table Section */
.prod-table-container {
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    padding: 0;
}

.prod-weights-table {
    width: 100%;
    border-collapse: collapse;
}

.prod-weights-table thead {
    background-color: #FAFAFA;
    border-bottom: 1px solid #EAEAEA;
}

.prod-weights-table th {
    font-size: 11.5px;
    font-weight: 500;
    color: #64748B;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid #EAEAEA;
}

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

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

/* Bottom Actions Row (Bottom Attached Frosted Glass Dock) */
.prod-card-bottom-row {
    position: fixed;
    bottom: 0;
    left: 260px;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: none;
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
    padding: 14px 24px;
    margin: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed .prod-card-bottom-row {
    left: 70px;
}

@media (max-width: 768px) {
    .prod-card-bottom-row {
        left: 0;
    }
}

.prod-btn-cancel-action {
    background-color: #FFFFFF;
    border: 1px solid #D9E0E7;
    border-radius: 6px;
    padding: 8px 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: #1A1A1A;
    cursor: pointer;
    height: 36px;
    transition: all 0.15s ease;
}

.prod-btn-cancel-action:hover {
    background-color: #F8FAFC;
    border-color: #CBD5E1;
}

.prod-btn-submit-action {
    background-color: #FF0000;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    height: 36px;
    transition: background-color 0.15s ease;
}

.prod-btn-submit-action:hover {
    background-color: #CC0000;
}


/* ============================================================
   RESPONSIVE (Laptop & Desktop: 1200px – 1920px)
   Breakpoints follow css/responsive-layout.css.
   The table columns use % widths, so only spacing changes here.
   The 992px block near the top is below the supported width
   (html min-width: 1200px) and is kept only as a fallback.
   ============================================================ */

/* Standard laptops (1366 / 1440) */
@media (max-width: 1440px) {
    .prod-weights-table th,
    .prod-weights-table td {
        padding: 9px 12px;
    }
}

/* Small laptops (1240 / 1280) */
@media (max-width: 1280px) {
    .prod-detail-page,
    .prod-detail-main-grid {
        gap: 12px;
    }

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

    /* Left info card: 240px -> 210px gives the table more room. */
    .prod-left-info-card {
        flex: 0 0 210px;
        width: 210px;
        padding: 12px;
    }

    .prod-info-list {
        gap: 10px;
    }

    .prod-info-item {
        padding-bottom: 10px;
    }

    .prod-info-value {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    /* Right card: 20/24px -> 14/16px padding. */
    .prod-right-content-card {
        padding: 14px 16px;
    }

    .prod-card-title {
        font-size: 15px;
    }

    .prod-card-top-row,
    .prod-table-container {
        margin-bottom: 12px;
    }

    .prod-weights-table th,
    .prod-weights-table td {
        padding: 8px 10px;
    }

    /* Bottom row: negative margins must match the card's 16px side padding
       so the divider line still runs edge to edge. */
    .prod-card-bottom-row {
        gap: 12px;
        margin-top: 12px;
        padding-top: 12px;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .prod-btn-cancel-action,
    .prod-btn-submit-action {
        padding: 6px 14px;
        font-size: 12px;
    }
}
