body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: #f7f7f7;
}

.header-cover {
    width: 100vw;
    height: 250px;
    max-height: 250px;
    min-height: 120px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.header-cover::before {
    content: "";
    position: absolute;
    top: 0;
    left: -60%;
    width: 40%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0) 100%
    );
    pointer-events: none;
    z-index: 3;
    animation: shine-move 2.5s linear infinite;
}

@keyframes shine-move {
    0%   { left: -60%; }
    100% { left: 120%; }
}

.cover-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.header-content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 10px 0 10px;
    box-sizing: border-box;
    gap: 12px;
    padding: 16px 2vw;
}

.main-navigation-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 5;
}

.nav-links-left,
.nav-links-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-item {
    display: inline-block;
    padding: 12px 15px;
    border: none;
    background: transparent;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-bottom-color 0.2s;
    white-space: nowrap;
    line-height: 1.5;
}

.nav-item:hover {
    color: #4CAF50;
}

.nav-item.active {
    color: #4CAF50;
    border-bottom-color: #4CAF50;
    font-weight: bold;
}

.flag-icon {
    width: 18px !important;
    height: 12px !important;
    border-radius: 2px !important;
    object-fit: cover !important;
    display: inline-block !important;
    margin-right: 4px !important;
    vertical-align: middle !important;
}

.cover {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 10px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-weight: bold;
    font-size: 20px;
    color: #1abc9c;
}

.tabs {
    display: flex;
    gap: 10px;
}

.tab {
    padding: 7px 22px;
    border: none;
    border-radius: 6px 6px 0 0;
    font-size: 16px;
    background: #e0e0e0;
    color: #333;
    cursor: pointer;
}

.tab.active {
    background: #1abc9c;
    color: #fff;
    font-weight: bold;
}

.container {
    max-width: 1150px;
    margin: 32px auto 0 auto;
    padding: 0 16px;
}

.center-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.type-choose {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    margin: 48px auto 0;
    max-width: 800px;
    flex-wrap: wrap;
}

.btn-type {
    flex: 1;
    min-width: 400px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 18px 12px;
    box-sizing: border-box;
    text-align: center;
    border-radius: 12px;
    border: 2px solid;
    background: #fff;
    white-space: normal;
    transition: all 0.2s;
    margin: 0;
}

.btn-type.safe {
    border-color: #4CAF50;
    color: #4CAF50;
}

.btn-type.unsafe {
    border-color: #F44336;
    color: #F44336;
}

.btn-type:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-3px);
}

.btn-type .icon {
    width: 80px;
    height: 80px;
    margin-bottom: 10px;
}

.btn-type h3, .btn-type .title {
    margin: 10px 0 8px 0;
    font-size: 18px;
    font-weight: bold;
    line-height: 1.3;
}

.btn-type p, .btn-type .description {
    margin: 5px 0 0 0;
    font-size: 15px;
    line-height: 1.5;
}

.form-section {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 16px #0001;
    padding: 32px 30px 24px 30px;
    margin-top: 30px;
}

label {
    display: block;
    margin: 10px 0 4px;
    font-weight: 500;
}

input, select, textarea {
    width: 100%;
    margin-bottom: 12px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

textarea {
    min-height: 60px;
}

.req {
    color: red;
}

.form-btns {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 18px;
}

.btn-green {
    background: #41b653;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
}

.btn-blue {
    background: #1877f3;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
    display: block;       
    width: 100%;          
    text-align: center; 
    text-decoration: none !important;
}

.btn-red {
    background: #e74c3c;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
}

.btn-gray {
    background: #666;
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
}

.filter-section {
    max-width: 1150px;
    margin: 32px auto 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 3px 16px #0001;
    padding: 32px 28px 10px 28px;
}

.filter-row {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 22px 28px !important;
}

.filter-row > div {
    display: flex;
    flex-direction: column;
    min-width: 170px;
    margin-bottom: 0;
}

.table-section {
    margin-top: 28px;
}

table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin-top: 12px;
    font-size: 16px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px 10px;
    text-align: left;
}

th {
    background-color: #BFFDC6;
    padding: 10px 8px;
    text-align: left;
}

table th:nth-child(1), table td:nth-child(1) { width: 3%; }
table th:nth-child(2), table td:nth-child(2) { width: 6%; }
table th:nth-child(3), table td:nth-child(3) { width: 10%; }
table th:nth-child(4), table td:nth-child(4) { width: 15%; word-wrap: break-word; overflow-wrap: break-word; }
table th:nth-child(5), table td:nth-child(5) { width: 15%; word-wrap: break-word; overflow-wrap: break-word; }
table th:nth-child(6), table td:nth-child(6) { width: 6%; }
table th:nth-child(7), table td:nth-child(7) { width: 8%; }
table th:nth-child(8), table td:nth-child(8) { width: 9%; }
table th:nth-child(9), table td:nth-child(9) { width: 6%; }
table th:nth-child(10), table td:nth-child(10) { width: 6%; }
table th:nth-child(11), table td:nth-child(11) { width: 8%; }
table th:nth-child(12), table td:nth-child(12) { width: 8%; }

table td {
    padding: 8px;
    vertical-align: top;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 0;
}

table tr:hover {
    background-color: #E9FEDA;
}

.pagination {
    margin: 24px 0 0 0;
    text-align: right;
}

.pagination a, .pagination span {
    display: inline-block;
    margin: 0 3px;
    padding: 6px 12px;
    border-radius: 4px;
    background: #f3f3f3;
    color: #333;
    text-decoration: none;
}

.pagination a:hover {
    background: #48c774;
    color: #fff;
}

.pagination .active {
    background: #48c774;
    color: #fff;
    font-weight: bold;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 120px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 4px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    cursor: pointer;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.show {
    display: block;
}

.safety-footer {
    background-color: #4CAF50 !important;
    color: white;
    padding: 15px 10px 5px 10px;
    font-family: Arial, sans-serif;
    width: 100%;
    box-sizing: border-box;
    margin-top: 32px;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    gap: 12px;
}

.safety-quote, .safety-motto {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
}

.safety-quote {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.safety-quote .quote-text {
    font-style: italic;
    font-weight: bold;
    font-size: 15px;
}

.safety-quote .quote-author {
    margin-top: 6px;
    font-size: 14px;
}

.safety-motto {
    text-align: right;
    font-weight: bold;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    font-size: 14px;
}

.footer-center {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.copyright {
    font-size: 14px;
    width: 100%;
}

@media (max-width: 768px) {
    .footer-row {
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-align: center;
    }
    .safety-quote, .safety-motto {
        text-align: center !important;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        padding: 2px 0;
    }
    .safety-motto {
        align-items: center;
    }
    .footer-center {
        margin-top: 8px;
    }
}

@media screen and (max-width: 768px) {
    .type-choose {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .btn-type {
        min-height: 100px;
        padding: 12px 8px;
        flex: none;
        width: 100%;
    }

    .main-navigation-bar {
        padding: 0 15px;
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px 15px;
    }
    .nav-item {
        font-size: 14px;
        padding: 10px 8px;
        border-bottom: none;
    }
    .nav-links-left, .nav-links-right {
        gap: 10px;
        flex-basis: 100%;
        justify-content: center;
    }
     .nav-links-right {
        order: 1;
    }


    .footer-content {
        flex-direction: column;
    }

    .safety-quote {
        max-width: 100%;
    }

    .safety-slogan {
        position: relative;
        margin-top: 20px;
        text-align: center;
    }

    .safety-quote .quote-author {
        position: relative;
        right: auto;
        text-align: right;
        margin-top: 10px;
        bottom: auto;
    }
}

@media screen and (max-width: 1150px) {
    .filter-row {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media screen and (max-width: 900px) {
    .filter-row {
        grid-template-columns: repeat(2, 1fr) !important;
    }

}

@media (max-width: 700px) {
     .flag-icon {
        width: 20px !important;
        height: 14px !important;
    }
}


@media screen and (max-width: 600px) {
    .filter-row {
        grid-template-columns: 1fr !important;
    }

    .form-btns {
        flex-direction: column;
        gap: 12px;
    }

    .btn-green, .btn-blue, .btn-red, .btn-gray {
        width: 100%;
        padding: 12px 20px;
        font-size: 16px;
        text-decoration: none !important;
        
    }

    .form-section, .filter-section {
        padding: 24px 15px;
    }

    table {
        font-size: 14px;
    }
    th, td {
        padding: 6px 5px;
    }
}

.type-choose {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.btn-type {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   width: 250px;
   padding: 20px 15px;
   border: 2px solid;
   border-radius: 12px;
   text-decoration: none;
   color: #333;
   background-color: #ffffff;
   box-shadow: 0 2px 5px rgba(0,0,0,0.1);
   transition: transform 0.2s ease, box-shadow 0.2s ease;
   cursor: pointer;
}

.btn-type:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.btn-type img {
    max-width: 100px;
    height: auto;
    margin-bottom: 15px;
}

.btn-type .btn-title {
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 8px;
}

.btn-type .btn-subtitle {
    font-size: 0.95em;
    color: #555;
    line-height: 1.3;
}

.btn-type.safe {
    border-color: #28a745;
}

.btn-type.safe .btn-title {
    color: #28a745;
}

.btn-type.unsafe {
    border-color: #dc3545;
}

.btn-type.unsafe .btn-title {
    color: #dc3545;
}

.center-block {
    text-align: center;
    padding: 20px 0;
}

.center-block h2 {
    margin-bottom: 20px;
}

.report-title-center {
    text-align: center;
    color: #4CAF50;
    font-weight: bold;
    margin-bottom: 24px;
    font-size: 2em;
    letter-spacing: 1px;
}

.filter-section .filter-row label,
.filter-section .filter-row input,
.filter-section .filter-row select {
    font-size: 14px !important;
    height: 32px;
    padding: 4px 8px;
}
.filter-section .filter-row input[type="date"] {
    font-size: 13px !important;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 4px;
}

.filter-row label {
    display: block;
    margin-bottom: 0px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

.filter-row input,
.filter-row select {
    margin-bottom: 0;
    padding: 5px 9px;
    font-size: 15px;
}

.export-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    margin: 16px 0;
}

.btn-export {
    min-width: 120px;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.18s, box-shadow 0.18s;
    box-shadow: 0 2px 8px #0001;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-pdf {
    background: #e74c3c;
}
.btn-pdf:hover {
    background: #c0392b;
}

.btn-excel {
    background: #1877f3;
}
.btn-excel:hover {
    background: #1259b2;
}

.btn-green {
    background: #41b653;
}
.btn-green:hover {
    background: #369944;
}

.MuiAutocomplete-paper {
    background-color: #d0f5d8 !important;
}

.MuiAutocomplete-option:hover {
    background-color: #b2e7c3 !important;
}

.report-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 15px;
}
.report-table th, .report-table td {
    border: 1px solid #ccc;
    padding: 6px 8px;
    text-align: left;
}
.report-table thead th {
    background: #e4f1fb;
    font-weight: bold;
}
.report-preview {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.file-input-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}




@media (max-width: 600px) {
    body {
        font-size: 1.08rem;
        padding: 0;
        margin: 0;
    }
    .container {
        max-width: 100% !important;
        padding: 0 6px !important;
        margin: 12px auto 0 auto !important;
    }
    .header-cover {
        height: 120px;
        min-height: 80px;
    }
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        padding: 10px 2vw !important;
        gap: 6px;
    }
    .main-navigation-bar {
        padding: 0 8px !important;
        flex-wrap: wrap;
        gap: 4px 8px;
    }
    .nav-item {
        font-size: 13px !important;
        padding: 8px 6px !important;
        border-bottom: none;
    }
    .cover {
        padding: 10px 10px !important;
        flex-direction: column;
        gap: 8px;
    }
    .logo {
        font-size: 18px !important;
    }
    .tabs {
        gap: 4px !important;
        flex-wrap: wrap;
    }
    .tab {
        padding: 6px 10px !important;
        font-size: 13px !important;
    }
    .type-choose {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 2vw !important;
        margin-top: 16px !important;
        margin-bottom: 16px !important;
    }
    .btn-type {
        min-width: unset !important;
        min-height: 80px !important;
        width: 100% !important;
        padding: 10px 6px !important;
        font-size: 15px !important;
    }
    .btn-type .icon {
        width: 52px !important;
        height: 52px !important;
        margin-bottom: 6px !important;
    }
    .btn-type h3, .btn-type .title {
        font-size: 16px !important;
    }
    .btn-type p, .btn-type .description {
        font-size: 13px !important;
    }
    .form-section, .filter-section {
        padding: 14px 4px !important;
        margin-top: 14px !important;
    }
    .form-btns {
        flex-direction: column !important;
        gap: 7px !important;
    }
    .btn-green, .btn-blue, .btn-red, .btn-gray, .btn-export, .tab, .btn-type {
        width: 100% !important;
        font-size: 15px !important;
        padding: 10px 0 !important;
        text-decoration: none !important;
    }
    .filter-row {
        grid-template-columns: 1fr !important;
        gap: 8px 0 !important;
    }
    .filter-row > div {
        min-width: unset !important;
    }
    table {
        font-size: 13px !important;
        margin-top: 4px !important;
    }
    th, td {
        padding: 4px 3px !important;
    }
    .footer-row {
        flex-direction: column !important;
        align-items: center !important;
        gap: 6px !important;
        text-align: center !important;
    }
    .safety-quote, .safety-motto {
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 13px !important;
        padding: 2px 0 !important;
    }
    .footer-center {
        margin-top: 6px !important;
        font-size: 13px !important;
    }
    .copyright {
        font-size: 12px !important;
    }
}

.designer-credit {
  margin-top: 5px;
  font-size: 0.85em;
  color: #fff;
  font-style: italic;
}

.btn-blue, .btn-blue:link, .btn-blue:visited {
    background: #1877f3; 
    color: #fff;
    border: none;
    padding: 10px 28px;
    border-radius: 6px;
    font-size: 17px;
    cursor: pointer;
    display: block;
    width: 100%;
    text-align: center;     
    text-decoration: none;  
    box-sizing: border-box; 
}


@media (max-width: 900px) {
    .table-section {
        overflow-x: auto;
        width: 100%;
    }
    #report-table {
        min-width: 1200px; 
        table-layout: fixed;
    }
    #report-table th,
    #report-table td {
        white-space: pre-line; 
    }
    #report-table th:nth-child(4),
    #report-table td:nth-child(4),
    #report-table th:nth-child(5),
    #report-table td:nth-child(5) {
        min-width: 320px; 
        max-width: 420px;
        word-break: break-word;
        white-space: pre-line;
    }
}



