/* ============================================================
   TABLE.CSS — Universal styling for all forms
   Mirrors philosophy of various css files for structural and appearance consistency.
   ============================================================ */

html, body {
/* This setting pushes the table away from the outer edge of the screen*/
    margin: 0px; 
/* This setting pushes the table away from the outer edge of the screen*/
    padding: 0px; 
}

/* Wrapper centers table on large screens */
.table-wrapper {
    display: flex;
    justify-content: center;
/*size within the screen*/
    width: 100%;
}

/* Outer container controls total width */
.outer-table {
    width: 960px;
    max-width: 960px;
/*top right bottom left*/
margin: 10px 3px 3px 3px;
/*inside the margins*/
    border: 0px solid yellow;
/*top right bottom left*/
padding: 0px 0px 0px 0px;
}

/* Each row's own inner table */
.inner-table {
/*justified left, inside screen*/
    width: 100%;
/*top right bottom left*/
margin: 0px 0px 0px 0px;
/*collapsed (combined) or separated with td border*/
    border-collapse: collapse;
/*all borders surrounding the inner-table, if inner-table td is larger, then it wins*/
    border: 0px solid red;
    background-color: #f8fff8;
/*    background-color: white; */
 //   background-color: blue;
/*top right bottom left, can push the contents outside of the fixed cell row*/
padding: 0px 0px 0px 0px;
    table-layout: fixed;   /* <-- critical: distributes widths evenly and prevents overflow */
}



/* Table cells */
.inner-table td {
    justify-content: center;
    align-items: center;
/*top right bottom left*/
margin: 0px 0px 0px 0px;
/*all borders surrounding the td, if inner-table is larger, then it wins*/
    border: 0px dashed green;
/*top right bottom left, can push the contents outside of the fixed cell row*/
padding: 0px 0px 0px 0px;
    text-align: center;
    width: auto;
}

/* Date-Time Inner Table*/
.dt-table {
    width: 100%;
/*top right bottom left*/
margin: 0px 0px 0px 0px;
/*collapsed (combined) or separated with td border*/
    border-collapse: collapse;
/*all borders surrounding the inner-table, if inner-table td is larger, then it wins*/
    border: 0px solid red;
    background-color: #f8fff8;
    background-color: yellow;
/*top right bottom left*/
padding: 0px 0px 0px 0px;
    table-layout: fixed;   /* <-- critical: distributes widths evenly and prevents overflow */
}
/* Date-TimeTable cells */
.dt-table td {
    justify-content: center;
    align-items: center;
/*top right bottom left*/
margin: 0px 0px 0px 0px;
/*collapsed (combined) or separated with td border*/
    border-collapse: collapse;
/*all borders surrounding the inner-table, if inner-table td is larger, then it wins*/
    border: 0px solid red;
/*top right bottom left*/
padding: 0px 0px 0px 0px;
    text-align: center;
    width: auto;
}

.inner-table td img {
    display: block;
    width: 100%;         /* Fill available cell width */
    height: auto;        /* Maintain image aspect ratio */
    max-width: 100%;     /* Prevent overflow */
    object-fit: contain; /* Keeps full image visible without distortion */
    margin: 0 auto;      /* Centers image horizontally */
}


/* ============================================================
   Buffer row (row 1, column 1) for spacing
   ============================================================ */
.table-wrapper .outer-table .table-row:first-child td:first-child {
    height: 0px;             /* Adjust to push table down */
/*lets the outer-table and wrapper have zero border, but does not work*/
    border-collapse: collapse;
    border: 0px solid blue;            /* Remove inner cell borders */
    padding: 0em;               /* Remove padding */
    margin: 0;                /* Remove margin */
    background: transparent;  /* Keep it invisible */
}

@media (max-width: 960px) {
    .outer-table {
        width: 960px;
        max-width: 960px;
    }
}

@media (min-width: 960px) {
    .outer-table {
        width: 960px;
    }
}
