﻿.subtable {
    width: 100%;
/*    border-collapse: collapse;
*/    margin-top: 5px;
    font-size: 0.85em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .subtable th {
        padding: 6px 8px;
        text-align: left;
        font-weight: 600;
        border: none;
    }

    .subtable td {
        padding: 6px 8px;
/*        border-bottom: 1px solid #e9ecef;
*/        vertical-align: top;
    }

    .subtable tr:hover {
        background-color: #f8f9fa;
    }

/* Details/Summary styling */
details {
    margin-bottom: 12px;
    /*border: 1px solid #dee2e6;*/
    /*border-radius: 8px;*/
    overflow: hidden;
/*    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
*/}

summary {
    list-style: none;
    cursor: pointer !important;
}

    summary::-webkit-details-marker {
        display: none;
    }

    summary::before {
        content: "▼ ";
        margin-right: 8px;
        font-weight: bold;
    }

details[open] summary::before {
    content: "▲ ";
}

/* Responsywność */
@media (max-width: 768px) {
    .subtable {
        font-size: 0.8em;
    }

        .subtable th,
        .subtable td {
            padding: 4px 6px;
        }
}

/* DataTables integration */
table.dataTable tbody tr:hover .subtable {
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

/* Styl dla logo */
.order-platform-logo {
    position: absolute;
    top: 4px;
    left: 4px;
    height: 24px;
    z-index: 5; /* Żeby logo było nad tłem */
}
