﻿/* General Table Styling */
.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-bottom: 1rem;
}

    .custom-table th,
    .custom-table td {
        border: 1px solid #ccc;
        padding: 8px 10px;
        text-align: left;
        vertical-align: top;
    }

/* Main Row */
.main-row {
    background-color: #f9f9f9;
    cursor: pointer;
    transition: background 0.2s;
}

    .main-row:hover {
        background-color: #ececec;
    }

/* Collapsible Detail Row */
.details-row {
    display: none;
    background-color: #fffaf0;
    font-size: 13px;
}

/* Item Details Box */
.item-details {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px;
    border-bottom: 1px dashed #ccc;
    font-style: italic;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

    .item-row span {
        flex: 1;
        text-align: left;
        min-width: 80px;
    }

.dispatch-btn {
    padding: 4px 10px;
    margin-left: 5px;
    background-color: #2a7ae2;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

    /*.dispatch-btn:hover {
        background-color: #1f5db8;
    }*/

/* buttons for pending report*/
.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #007bff; /* Bootstrap primary color */
    margin-right: 10px;
    padding: 4px 8px;
}

    .btn-icon:hover {
        color: #0056b3;
    }

.action-icon-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 6px;
    margin: 2px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

    .action-icon-btn:hover {
        background-color: #f0f0f0;
        transform: scale(1.05);
    }

    .action-icon-btn i {
        font-size: 16px;
        color: #333;
    }

/* button pending ends here */

/*table for offline items*/
.styled-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    margin-top: 10px;
}

    .styled-table thead th {
        background-color: #f2f2f2;
        padding: 10px;
        text-align: left;
        font-weight: bold;
        border-bottom: 2px solid #ddd;
    }

    .styled-table tbody td {
        padding: 10px;
        border-bottom: 1px solid #e0e0e0;
        vertical-align: middle;
    }

    .styled-table tfoot td {
        font-weight: bold;
        padding: 10px;
        border-top: 2px solid #ccc;
    }

    .styled-table button {
        padding: 6px 12px;
        font-size: 14px;
        border: none;
        background-color: #007bff;
        color: white;
        border-radius: 4px;
        cursor: pointer;
    }

        .styled-table button:hover {
            background-color: #0056b3;
        }

.highlight-row {
    background-color: #e6ffe6 !important;
}


/*table for offline items ends here*/

/* table Responsive (optional for small screens) */
@media screen and (max-width: 768px) {
    .custom-table th, .custom-table td {
        font-size: 12px;
        padding: 6px;
    }

    .item-row {
        flex-direction: column;
        gap: 2px;
    }

        .item-row span {
            min-width: unset;
        }
}

