/* Shared CSP-safe styles moved out of inline <style> and style="" attributes. */

body.login-page,
body.error-page {
    margin: 0;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #f5f7ff, #eef2ff);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper,
.error-wrapper {
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-card,
.error-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.login-card {
    padding: 28px 26px;
}

.error-card {
    padding: 36px 26px;
    text-align: center;
}

.login-header {
    text-align: center;
    margin-bottom: 18px;
}

.login-header img {
    max-width: 180px;
    height: auto;
}

.login-title,
.error-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
}

.login-title {
    margin: 14px 0 6px;
}

.error-title {
    margin: 8px 0 10px;
}

.login-subtitle {
    font-size: 13px;
    color: #666;
    margin-bottom: 18px;
}

body.login-page .form-group {
    margin-bottom: 14px;
}

body.login-page .form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

body.login-page .txt-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 12px;
    border: 1px solid #dcdcdc;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: 0.2s ease;
}

body.login-page .txt-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

body.login-page .btn-row {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

body.login-page .button {
    flex: 1;
    border: none;
    cursor: pointer;
    padding: 12px 10px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    transition: 0.2s ease;
}

body.login-page .button.primary {
    background: #4f46e5;
    color: #fff;
}

body.login-page .button.primary:hover,
body.error-page .btn-home:hover {
    background: #4338ca;
}

body.login-page .button.secondary {
    background: #f3f4f6;
    color: #111827;
}

body.login-page .button.secondary:hover {
    background: #e5e7eb;
}

body.login-page .error {
    display: block;
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff5f5;
    border: 1px solid #ffd6d6;
    color: #c53030;
    font-size: 13px;
}

body.error-page .error-message {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 22px;
}

body.login-page .help-text,
body.error-page .help-text {
    margin-top: 16px;
    font-size: 12px;
    color: #555;
    text-align: center;
    line-height: 1.5;
}

body.login-page .help-text span,
body.error-page .help-text span {
    color: #777;
}

body.error-page .error-card .help-text {
    margin-top: 18px;
    color: #777;
}

body.login-page .copyright,
body.error-page .copyright {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: #666;
    display: none;
}

body.login-page .copyright img,
body.error-page .copyright img {
    vertical-align: middle;
    margin: 0 6px;
}

.btn-home {
    display: inline-block;
    padding: 12px 22px;
    background: #4f46e5;
    color: #fff;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

body img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

.is-hidden {
    display: none !important;
}

.ticket-grid {
    width: 100% !important;
    border-collapse: collapse;
}

.ticket-grid th,
.ticket-grid td {
    padding: 8px;
    text-align: center;
    vertical-align: middle;
    border: 1px solid #ddd;
    font-size: 11px;
}

.ticket-grid th {
    background-color: #f2f2f2;
}

.ticket-message {
    font-weight: bold;
    font-size: 20px;
    color: Red;
}

.wrap-85 {
    width: 85% !important;
}

.wrap-90 {
    width: 90% !important;
}

.wrap-95 {
    width: 95% !important;
}

.display-none {
    display: none;
}

.text-center {
    text-align: center;
}

.font-large {
    font-size: large;
}

.font-14 {
    font-size: 14px;
}

.font-13 {
    font-size: 13px;
}

.font-10 {
    font-size: 10px;
}

.font-initial {
    font-weight: initial;
}

.text-red {
    color: red;
}

.mb-10 {
    margin-bottom: 10px;
}

.mt-15 {
    margin-top: 15px;
}

.mt-2pct {
    margin-top: 2%;
}

.container-auto-top {
    width: auto;
    margin-top: 20px;
}

.overflow-x-auto {
    overflow-x: auto;
}

.full-width {
    width: 100%;
}

.inline-hidden-value {
    display: none;
}

.vertical-middle {
    vertical-align: middle;
}

.nowrap {
    white-space: nowrap;
}

.hourly-group-header {
    background-color: #0090cb;
    color: white;
}

.mopping-popup {
    display: none;
    position: fixed;
    top: 20%;
    left: 30%;
    background: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    z-index: 9999;
}

.mopping-close {
    cursor: pointer;
    float: right;
}

.mopping-img {
    max-width: 600px;
    max-height: 400px;
    min-height: 270px;
}

.edge-submit-btn {
    width: 100%;
}

.edge-caption {
    caption-side: top;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
}

.edge-image-thumb {
    cursor: pointer;
    max-width: 120px;
    height: auto;
}

.heatmap-filter-row {
    display: flex;
    align-items: end;
}

.heatmap-loader {
    display: none;
    text-align: center;
    margin-bottom: 10px;
}

.heatmap-table {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    min-width: 1000px;
}

.heatmap-thead {
    background-color: #0B5D7A;
    color: white;
    position: sticky;
    top: 0;
}

.heatmap-tbody {
    background-color: #f2f4f7;
}

.heatmap-hidden-row {
    display: none;
}

.menu-clickable {
    cursor: pointer;
}

/* Bootstrap 5 exposes .navbar-nav as a vertical flex list unless it lives inside a Bootstrap
   navbar component. The legacy menu is a standalone list, so retain its original horizontal,
   wrapping layout while using the maintained Bootstrap bundle for dropdown behavior. */
.main-nav > .navbar-nav {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.main-nav > .navbar-nav > li {
    flex: 0 0 auto;
    float: none;
}

.notification-heading {
    color: red;
}
