﻿/* Track & Trace Professional Style */

/* Base font & color */
body {
    font-family: "Roboto", "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    background-color: #f9f9f9;
    margin: 0;
}

/* Page container */
.track-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px;
}

/* Search bar layout */
.search-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    margin-bottom: 15px;
}

.search-bar input[type="text"] {
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.search-bar button,
.search-bar input[type="submit"],
.search-bar .aspNetButton {
    background-color: #004080;
    color: white;
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.search-bar button:hover,
.search-bar input[type="submit"]:hover,
.search-bar .aspNetButton:hover {
    background-color: #0055aa;
}

/* Table container (scrollable on mobile) */
.table-container {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    overflow-x: auto;
}

/* Table styling */
table {
    border-collapse: collapse;
    width: 100%;
    font-size: 14px;
    min-width: 800px; /* keeps columns readable */
}

th {
    background-color: #004080;
    color: white;
    padding: 8px;
    text-align: center;
}

td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
    text-align: center;
}

tr:hover {
    background-color: #f5f5f5;
}

/* ETD & ETA POD column sizing */
.track-table tr th:nth-child(6),
.track-table tr td:nth-child(6), /* ETD */
.track-table tr th:nth-child(7),
.track-table tr td:nth-child(7)  /* ETA POD */
.track-table tr th:nth-child(8),
.track-table tr td:nth-child(8), /* ETD */
.track-table tr th:nth-child(9),
.track-table tr td:nth-child(9)  /* ETA POD */
{
    width: 85px;
    white-space: nowrap;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .search-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-bar input[type="text"],
    .search-bar button,
    .search-bar input[type="submit"] {
        width: 100%;
    }
}

.trackntrace-wrapper {
    max-width: 1200px;
    margin: auto;
    padding: 15px;
    font-family: 'Roboto', sans-serif;
}

.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.page-title {
    text-align: center;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.search-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.search-box {
    padding: 6px 10px;
    font-size: 14px;
    width: 200px;
}

.search-btn {
    vertical-align: middle;
}

.grid-container {
    overflow-x: auto;
    margin-bottom: 25px;
}

.grid-table {
    width: 100%;
    border-collapse: collapse;
}

.grid-table th {
    background-color: #f5f5f5;
    padding: 8px;
    text-align: left;
}

.grid-table td {
    padding: 8px;
    border-bottom: 1px solid #ddd;
}

/* Make table headers visible with better contrast */
.grid-table th {
    background-color: #004080; /* Dark blue background */
    color: #ffffff; /* White text */
    text-align: left; /* Align header text left */
    padding: 8px;
    font-weight: 600;
}

/* Search result alignment */
.grid-table td {
    text-align: left;
    padding: 8px;
    vertical-align: top;
}

/* Make table look cleaner */
.grid-table {
    border-collapse: collapse;
    width: 100%;
    font-family: 'Roboto', sans-serif;
    background-color: #ffffff;
    border: 1px solid #ccc;
}

.grid-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.grid-table tr:hover {
    background-color: #f1f5ff; /* Light blue hover effect */
}

/* Search section alignment and spacing */
.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.search-box {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 200px;
}

.search-btn {
    border: none;
    background: none;
    cursor: pointer;
}

/* Page title styling */
.page-title {
    font-size: 26px;   /* Bigger font size */
    font-weight: bold;
    color: #004080;       /* Dark text for better contrast */
    text-align: center;
    margin: 20px 0;
}