:root {
    --bg: #222;
    --bg-gradient: linear-gradient(140deg, #232526 0%, #282828 100%);
    --text: #f2f2f5;
    --accent: #fdfdfd;
    --container-bg: #2d2d2d;
    --container-shadow: 0 6px 32px 0 rgba(0,0,0,0.25);
    --input-bg: #373a35;
    --input-focus-bg: #373a35;
    --label: #e1e1e1;
    --border-bottom: 1px solid #fdfdfd;
    --text-shadow: 0 2px 12px rgba(243, 242, 242, 0.733);
    --bg-footer: #232323e0;
    --bg-shadow: 0 -2px 12px #000b;
    --bg-footer-hove: #51564e;
    --field-color: #6e98e4;
    --svDt-color: #93c718;
}
body.light {
    --bg: #f2f2f5;
    --bg-gradient: linear-gradient(140deg, #f9fafb 0%, #e6e8ec 100%);
    --text: #232526;
    --accent: #232526;
    --container-bg: #fff;
    --container-shadow: 0 6px 32px 0 rgba(169, 169, 170, 0.07);
    --input-bg: #e8f0fd;
    --input-focus-bg: #e8f0fd;
    --label: #232526;
    --border-bottom: 1px solid #878787;
    --text-shadow: 0 2px 12px #1111118f;
    --bg-footer: #cac6c6e0;
    --bg-shadow: 0 -2px 12px rgba(194, 194, 194, 0.733);
    --bg-footer-hove: #ffffff6e;
    --field-color: #447099;
    --svDt-color: #49630d;
}
/* RESET AND BASE */
body {
    height: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
    font-size: 16px;
}
html {
    overflow-y: auto;
}
body { background: var(--bg-gradient); overflow-x: hidden; min-height: 100vh; }
/* PAGE FLEX CENTERING FOR login, splash, loading */
body.index-page, body.login-page, body.loading-page, body.splash-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}
.login-page {
    flex-direction: column;
}
/* CONTAINERS */
.login-container{
    position: relative;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 26px 22px 22px 22px;
    background: var(--container-bg);
    border-radius: 12px;
    box-shadow: var(--container-shadow);
    transition: box-shadow 0.2s;
    margin: 0 20px;
    width: calc(100% - 40px);
}
.logo-container {
    text-align: center;
    margin: 30px 0 10px;
}
#loginForm {
    margin: 0 10px;
}
.form-container, .account-container, .faq-container, .filter-container {
    width: calc(100% - 84px);
    margin: 10px 20px 60px;
    padding: 0 22px 22px 22px;
    /*background: var(--container-bg);*/
    border-radius: 12px;
    /*box-shadow: var(--container-shadow);*/
    transition: box-shadow 0.2s;
}
.dashboard-container {
    margin: 10px 20px 60px;
    width: calc(100% - 40px);
}
.form-group {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}
.form-group:last-child {
    margin-bottom: 0;
}
.resetButtonsBlock {
    display: flex;
    justify-content: space-around;
}
/* HEADINGS */
h2 {
    margin: 0 0 20px 0;
    text-align: center;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 1.5em;
    color: var(--text);
    text-shadow: var(--text-shadow);
}
.form-container h2,
.dashboard-container h2,
.account-container h2,
.faq-container h2,
.filter-container h2 {
    font-size: 2em;
    color: var(--text);
    margin-bottom: 24px;
}
/* LOADER */
.loader-container {
    max-width: 340px;
    margin: 48px auto;
    padding: 28px 18px 26px 18px;
    background: var(--bg);
    border-radius: 11px;
    box-shadow: var(--bg-shadow);
    text-align: center;
}
.loader-bar {
    background: #333;
    border-radius: 12px;
    height: 13px;
    width: 100%;
    margin-top: 20px;
    overflow: hidden;
    margin-bottom: 7px;
}
.loader-bar-inner {
    background: linear-gradient(90deg,#44e488,#29dc8b 85%);
    height: 100%;
    width: 0%;
    transition: width 0.38s cubic-bezier(.45,1.7,.46,.87);
}
#syncStatus {
    margin-top: 20px;
    color: var(--text);
    font-size: 1.1em;
    min-height: 44px;
}
/* Cancel sync button */
.cancel-sync-btn {
    margin-top: 20px;
    padding: 8px 18px;
    font-size: 0.95em;
    border-radius: 7px;
    background: #c93238;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.13s;
    box-shadow: 0 2px 8px rgba(201, 50, 56, 0.3);
}
.cancel-sync-btn:hover {
    background: #a02127;
    transform: scale(1.02);
}
.cancel-sync-btn:active {
    transform: scale(0.98);
}
/* Brand modal */
.brand-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}
.brand-modal__box {
    background: var(--container-bg);
    padding: 24px 18px 18px 18px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}
.brand-modal__title {
    color: var(--text);
    margin: 0 0 16px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.brand-modal__list {
    max-height: 280px;
    overflow-y: auto;
    margin-bottom: 16px;
    padding: 4px;
    border: 1px solid rgba(107, 114, 128, 0.2);
    border-radius: 8px;
    background: var(--input-bg);
}
.brand-modal__list::-webkit-scrollbar {
    width: 8px;
}
.brand-modal__list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}
.brand-modal__list::-webkit-scrollbar-thumb {
    background: rgba(107, 114, 128, 0.5);
    border-radius: 4px;
}
.brand-modal__list::-webkit-scrollbar-thumb:hover {
    background: rgba(107, 114, 128, 0.7);
}
.brand-modal__item {
    display: flex;
    align-items: center;
    margin: 4px 0;
    color: var(--text);
    font-size: 1.05em;
    cursor: pointer;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background 0.15s;
    user-select: none;
}
.brand-modal__item:hover {
    background: rgba(107, 114, 128, 0.15);
}
.brand-modal__checkbox {
    margin-right: 12px;
    cursor: pointer;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    accent-color: #65890f;
}
.brand-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.brand-modal__btn {
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, transform 0.13s;
    flex: 1;
    min-width: 120px;
}
.brand-modal__btn--select-all {
    background: #ff8400;
    color: #fff;
    flex: none;
    width: 100%;
    margin-bottom: 8px;
}
.brand-modal__btn--select-all:hover {
    background: #db7202;
}
.brand-modal__btn--sync {
    background: linear-gradient(90deg, #65890f 0%, #65890f 100%);
    color: #fff;
}
.brand-modal__btn--sync:hover {
    background: linear-gradient(90deg, #4a6213 0%, #6a8a20 100%);
}
.brand-modal__btn--exit {
    background: #c93238;
    color: #fff;
}
.brand-modal__btn--exit:hover {
    background: #a02127;
}
.brand-modal__btn:active {
    transform: scale(0.98);
}
/* LOGIN PAGE BUTTONS */
#pwa-install-btn {
    display: none;
    background: #ff8400;
    color: #fff;
    font-weight: 500;
    width: auto;
    border-radius: 6px;
    box-shadow: none;
    padding: 7px 18px;
    margin: 10px;
    font-size: 1em;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.16s, color 0.16s, border-color 0.16s;
    outline: none;
    min-width: 0;
}
#pwa-install-btn:hover, #pwa-install-btn:focus,
.clearCachebutton:hover, .clearCachebutton:focus {
    background: #db7202;
}
.mode-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(90deg, #202126 60%, #232829 100%);
    color: #e6fff2;
    border: none;
    border-radius: 22px;
    padding: 4px 7px;
    font-size: 0.97em;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    /* ---- Key lines below ---- */
    width: auto;         /* or set to a fixed width, e.g. width: 140px; */
    transition: background 0.22s, color 0.15s, box-shadow 0.16s, min-width 0.18s;
    position: fixed;
    top: 17px;
    right: 13px;
    z-index: 2500;
    box-shadow: 0 8px 32px #9898981c, 0 2px 10px #ababab66;
    outline: none;
    height: 38px;
    overflow: hidden;
}
.mode-toggle:hover, .mode-toggle:focus {
    background: linear-gradient(90deg, #fdfdfd1f 80%, #00000059 100%);
    color: #fff;
    box-shadow: 0 8px 32px #3939391b, 0 2px 10px #222;
}
.mode-toggle__icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fffbe8 70%, #ffe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px #101b2090;
    transition: background 0.18s, box-shadow 0.18s;
}
.flexBlockDetails {
    display: flex;
    justify-content: flex-start;
}
.custom-select-container {
    width: 100%;
}
.mode-toggle__icon svg {
    width: 19px;
    height: 19px;
    display: block;
    filter: drop-shadow(0 0.5px 1.5px #0f3b2899);
    transition: filter 0.15s;
}
/* Text style */
.mode-toggle__text {
    min-width: 75px;   /* <--- Ensures the text span doesn't shrink on DAYMODE */
    display: inline-block;
    text-align: left;
    transition: color 0.16s;
    font-size: 1em;
    padding-right: 4px;
}
/* Day mode styles */
body.light .mode-toggle {
    background: linear-gradient(90deg, #fefefe52 75%, #f7ffe7 100%);
    color: #2a3b1d;
    border-color: #f0eec9;
    box-shadow: 0 8px 32px #3939391b, 0 2px 10px #222;
}
body.light .mode-toggle__icon {
    background: linear-gradient(90deg, #393a43 60%, #232829 100%);
    box-shadow: 0 1.5px 5px #ffe85a60;
}
body.light .mode-toggle__text {
    color: #343c17;
    text-shadow: 0 1px 3px #ffeef299;
}
@media (max-width: 600px) {
    .mode-toggle {
        font-size: 0.93em;
        top: 8px;
        right: 5px;
        height: 30px;
        gap: 5px;
    }
    .mode-toggle__icon { width: 19px; height: 19px; }
    .mode-toggle__icon svg { width: 13px; height: 13px; }
    .mode-toggle__text { font-size: 0.93em; }
}
/* FORM & LABELS */
label {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
    color: var(--label);
    font-weight: 500;
}
input[type="text"], input[type="password"], input[type="number"], .autocomplete-input, .form-control.fileComment {
    width: calc(100% - 22px);
    padding: 11px;
    border: none;
    border-radius: 7px;
    font-size: 1.03em;
    background: var(--input-bg);
    color: var(--text);
    transition: box-shadow 0.16s, background 0.2s;
    box-shadow: 0 2px 6px 0 rgba(32,80,44,0.13);
    outline: none;
    font-family: inherit;
}
input[type="text"]:focus, input[type="password"]:focus, input[type="number"]:focus, .autocomplete-input:focus, .form-control.fileComment:focus {
    background: var(--input-focus-bg);
    box-shadow: var(--bg-shadow);
}
/* BUTTONS */
button, .uploadButt, .submitButt, .submitFilter, .resetFilter, #addLabourBtn, #addPartsBtn, #addCommentBtn, .clearCachebutton {
    padding: 10px;
    border: none;
    font-size: 1em;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    max-width: 160px;
    box-shadow: 0 2px 8px 0 rgba(80,255,128,0.06);
    letter-spacing: 0.8px;
    transition: background 0.17s, box-shadow 0.16s, filter 0.13s, transform 0.13s;
}
.submitFilter {
    background: #6a8a20;
    color: white;
}
button:hover:not(:disabled,.copyBtn), .uploadButt:hover:not(:disabled), .submitButt:hover:not(:disabled), .submitFilter:hover:not(:disabled), .resetFilter:hover:not(:disabled) {
    box-shadow: var(--bg-shadow);
}
button:active, .uploadButt:active, .submitButt:active, .submitFilter:active, .resetFilter:active {
    filter: brightness(0.97);
    transform: scale(0.99);
}
button:disabled, .uploadButt:disabled, .submitButt:disabled, .submitFilter:disabled, .resetFilter:disabled {
    background: #4b4b4b;
    color: #bbb;
    cursor: not-allowed;
    opacity: 0.7;
}
#commentForm {
    display: none;
}
/* FILTER PAGE COMPONENTS */
.filterMainBlock {
    background: var(--bg);
    border-radius: 14px;
    padding: 22px 20px 20px 20px;
    box-shadow: var(--bg-shadow);
    margin: 10px 20px 60px;
}
.singleFilterContainer { margin-bottom: 18px; position: relative; margin: 0 20px;}
.filterTitleLable {
    color: var(--text);
    font-size: 1.09em;
    margin-bottom: 3px;
    font-weight: 500;
    width: 80px;
    display: flex;
    align-items: center;
}
.filterSelectedItem {
    font-size: 1.17em;
    padding: 4px 0;
    border-radius: 7px;
    background: none;
    color: var(--text);
    display: flex;
    align-items: center;
}
.filterSelectedItem h3 { margin: 0; }
.autocomplete-input {
    width: calc(100% - 10px)!important;
    margin-left: 10px;
}
.filter-dropdown {
    max-height: 23vh;
    overflow-y: auto;
    border-radius: 7px;
    background: var(--bg);
    margin-top: 5px;
    padding: 5px 0;
    box-shadow: var(--bg-shadow);
    z-index: 99;
    position: absolute;
    width: calc(100% - 10px);
    display: none;
    top: 50px;
    margin-left: 10px;
}
.selectedSerialModel {
    padding: 10px;
    border-radius: 6px;
    width: 100%;
    display: flex;
}
#resultContainer {
    margin: 30px 20px 10px;
}
.selectedSerialModel div {
    margin-right: 10px;
}
.label {
    color: var(--field-color);
    font-weight: 500;
    margin-right: 5px;
}
.flexBlockDetails .label,
#claimTypeContainer .label {
    width: 130px;
}
.claimStatusBlock {
    display: flex;
}
.claimStatusBlock div {
    width: 50%;
}
.claimStatusBlock .flexBlockDetails:nth-of-type(2) {
    margin-left: 20px;
}
.flexBlockDetails a{
    margin-left: 10px;
}
.filter-option {
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.13s;
    font-size: 16px;
    color: var(--text);
    display: block;
    width: 100%;
    box-sizing: border-box;
}
.filter-option p {
    width:100%;
    margin:10px 0;
}
.filter-option:hover, .filter-option.active {
    background: var(--bg-footer);
    color: var(--text);
}
#productFilter {
    border-top: var(--border-bottom);
    padding-top: 30px;
}
.updateDetails {
    font-size: 1.4em;
    color:#65890f;
    padding: 5px;
    cursor: pointer;
    float: right;
    margin-left: 5px;
    border: none!important;
    box-shadow: none!important;
    background: none;
    text-align: right;
    width: 20px;
}
.sync-modal__button--primary {
    background: linear-gradient(90deg, #65890f 0%, #65890f 100%)!important;
    color: #fff;
    border-color: #65890f!important;
}
.sync-modal__footer__syncBlock {
    width:40%;
}
.sync-modal__footer__closeBlock {
    width:60%;
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
}
.updateDetails:hover {
    transform: translateY(-2px) scale(1.025);
    color: var(--svDt-color);
}
.filter-option:last-child { border-bottom: none; }
.submitFilterContainer { display: flex; gap: 18px; margin-top: 26px; justify-content: space-between; margin: 50px 20px 10px;}
.submitFilter, .resetFilter { flex: 1; padding: 10px; border-radius: 7px; border: none; font-size: 16px; }
.submitFilter { background: #6a8a20; color: #fff; }
.resetFilter { background: #c93238; color: #fff; }
/* ACCOUNT PAGE */
.profile-card {
    background: var(--profile-card-bg);
    color: var(--profile-card-text);
    box-shadow: var(--profile-card-shadow);
    border-radius: 14px;
    padding: 10px 20px 20px 20px;
    max-width: 440px;
    margin: 0 auto 5px;
}
.profile-header {
    display: flex;
    gap: 16px;
    margin-bottom: 15px;
}
#profile-fullname {
    margin-top: 0;
}
.userDetailsForm svg {
    color: #cc0000;
}
.editable-field {
    background:#646464;
    border: none;
    color: var(--text);
    width:100%;
    padding:5px 8px;
    border-radius:5px;
}
.profile-icon { flex-shrink: 0;}
.profile-email { display: flex; align-items: center; gap: 7px; font-size: 1.04em; color: var(--text); margin-top: 2px; }
.userDetailsForm { margin-top: 23px; }
.account-row { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #23342d; padding: 12px 0; font-size: 1.06em; }
.account-label { color: var(--text); min-width: 150px; font-weight: 500; letter-spacing: 0.02em; display: flex; align-items: center; }
.account-value { color: var(--text); flex: 1; text-align: right; word-break: break-word; display: flex; align-items: center; gap: 6px; }
.editable-row input.editable-field[readonly] { color: var(--text); border: none; outline: none; cursor: default; }
.editable-row input.editable-field:not([readonly]) { cursor: text; }
.edit-icon { cursor: pointer; vertical-align: middle; margin-left: 7px; transition: filter 0.15s, transform 0.13s; color: #cc0000; }
.edit-icon:hover { filter: brightness(1.4); transform: scale(1.08); }
button.submitFilter {
    border-radius: 7px;
    font-size: 1.06em;
    padding: 8px 21px;
    background: linear-gradient(90deg, #65890f 0%, #65890f 100%);
    font-weight: 600;
    border: none;
    box-shadow: 0 2px 9px #1122118f;
    letter-spacing: 0.9px;
    min-width: 108px;
    width: auto;
}
button.submitFilter:hover,
.sync-modal__button--primary:hover {
    background: linear-gradient(90deg, #4a6213 0%, #6a8a20 100%);
}
#no-account-data { display:none; padding:38px 0 12px 0; text-align:center; }
#no-account-data svg { margin-bottom:10px; }
#no-account-data .mainMsg { color:#7cffc6; font-size:1.11em; font-weight:500; letter-spacing:0.02em; margin-bottom:4px; }
#no-account-data .subMsg { color:#baffdd; font-size:0.98em; }
/* DASHBOARD */
.reportSummaryByTypeContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    background: var(--bg);
    border-radius: 14px;
    padding: 22px 20px 20px 20px;
    box-shadow: var(--bg-shadow);
    margin: 0 0 10px 0;
}
.uploadedFileIcons {
    display: flex;
    align-items: center;
}
.uploadedFileContainer {
    display: flex;
    align-items: center;
}
.fileContainer,
.submitButtContain {
    width: 160px;
}
.sync-modal__content {
    background-color: var(--bg)!important;
    box-shadow: var(--bg-shadow)!important;
    color: var(--text)!important;
}
.sync-modal__header h2,
.sync-modal__list strong,
.sync-modal__section h3,
.sync-modal__list li,
.sync-modal__total {
    color: var(--text)!important;
}
.sync-modal__total strong {
    color: #cc0000!important;
}
.reportSummaryByType {
    background: var(--bg);
    border-radius: 11px;
    padding: 16px 19px 14px 19px;
    min-width: 115px;
    box-shadow: var(--bg-shadow);
    margin: 0 0 16px 0;
    transition: box-shadow 0.14s, flex-basis 0.25s, max-width 0.25s;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
    width: 100%;
    min-height: 100px;
}
.reportSummaryByType.expanded { flex-basis: 100%; max-width: 100%; z-index: 2; }
.reportSummaryByType:hover {
    box-shadow: var(--bg-shadow);
}
.infoBlock { text-align: left; margin-bottom: 7px; width: 100%;display: flex;}
.typeSystem {
    font-weight: 600;
    color: var(--field-color);
    margin-top: 6px;
    font-size: 1.1em;
}
.totalNumb {
    display: block;
    font-size: 1.1em;
    color: var(--text);
    font-weight: 500;
    margin: 6px 10px;
}
#applicationContainer {
    width: 100%;
    position: relative;
}
#APPLICATION {
    margin-left: 10px;
    width: calc(100% - 32px);
}
.inforeport { margin-top: 13px; width: 100%; }
.serialNumberTable,
.labourTable,
.partsTable { width: 100%; border-collapse: collapse; text-align: left;}
.serialNumberTable th, .serialNumberTable td,
.labourTable th, .labourTable td,
.partsTable th, .partsTable td {
    padding: 6px 10px;
    border-bottom: 1px solid #2a453a;
    text-align: left;
    font-size: 1em;
}
.serialNumberTable th,
.labourTable th,
.partsTable th{
    color: var(--text);
    background: var(--bg-footer-hove);
}
.labourTable th,
.partsTable th{
    text-align: center;
}
.serialNumberTable tr:last-child td,
.labourTable tr:last-child td,
.partsTable tr:last-child td { border-bottom: none; }
.labourTable tr td,
.partsTable tr td {
    text-align: center;
}
.labourTable tr td:nth-child(-n+2),
.labourTable tr th:nth-child(-n+2),
.partsTable tr td:nth-child(-n+2),
.partsTable tr th:nth-child(-n+2) {
    text-align: left;
}
.serialNumberTable tr,
.labourTable tr,
.partsTable tr { 
    cursor: pointer; height: 60px;
}
.serialNumberTable tr:hover,
.labourTable tr:hover,
.partsTable tr:hover {
    background: var(--bg-footer-hove);
}
#desc-download-file {
    margin-left: 10px;
}
.serialNumberTable tr td,
.serialNumberTable tr th,
.labourTable tr td,
.labourTable tr th,
.partsTable tr td,
.partsTable tr th{
    padding-left: 5px;
}
#partsSearchDropdown,
#labourTypeOptions {
    top: 50px;
}
#labourType{
    position: relative;
}
.errorMessage { color: #ffc7c7; background: #510b13; border-radius: 7px; padding: 9px 14px; margin-top: 13px; display: none; font-size: 1em; }
/* FAQ */
.faqMainBlock { background: var(--bg); border-radius: 14px; padding: 22px 20px 20px 20px; box-shadow: 0 2px 8px #1116; }
.faq-accordion .faq-item { border-radius: 14px; border-bottom: var(--border-bottom); transition: background 0.14s; }
.faq-accordion .faq-question { width: 100%;max-width: 100%; display: flex; align-items: center; gap: 13px; text-align: left; padding: 15px 0 13px 13px; font-size: 1.13em; color: var(--text); background: none; border: none; outline: none; cursor: pointer; font-weight: 500; transition: color 0.2s, background 0.18s; }
.faq-accordion .faq-question:hover { color: var(--text); background: var(--bg-footer-hove); border-radius: 14px; }
.faq-accordion .faq-icon { flex-shrink: 0; display: inline-flex; align-items: center; }
.faq-accordion .faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.34s cubic-bezier(0.72,0,0.3,1), padding 0.25s; padding: 0 0 0 36px; color: var(--text); font-size: 1.05em; line-height: 1.6em; }
.faq-accordion .faq-item.active .faq-answer { max-height: 350px; padding: 15px 0 15px 36px; animation: fadeInFaq 0.25s; }
@keyframes fadeInFaq { from { opacity: 0; } to { opacity: 1; } }
/* SPLASHSCREEN */
.brands-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; margin: 0 auto 45px auto; background: none; }
@media (max-width: 1100px) { .brands-grid { grid-template-columns: repeat(4, 1fr);} }
@media (max-width: 900px) { .brands-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 650px) { .brands-grid { grid-template-columns: repeat(2, 1fr); margin: 0 10px 45px; width: calc(100% - 20px);} }
@media (max-width: 440px) { .brands-grid { grid-template-columns: repeat(1, 1fr); } }
.brand-cell {
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 18px 6px 10px 6px;
    margin: 0;
    font-family: sans-serif;
    border-radius: 12px;
    transition: box-shadow 0.13s,
    transform 0.13s;
    cursor: pointer;
    box-shadow: 0px 1px 2px rgb(0 0 0 / 24%);
    background: #fff;
}
.brand-cell:hover { box-shadow: var(--bg-shadow); transform: translateY(-2px) scale(1.025); }
.brand-img {
    width: 100%;
    object-fit: contain;
    margin-bottom: 10px;
    border-radius: 9px;
}
.brand-title { font-size: 1.4em; font-weight: 500; color: black; text-align: center; margin-bottom: 2px; letter-spacing: 0.01em; word-break: break-word; }
.brand-note { color: val(--text); font-size: 0.93em; font-style: italic; text-align: center; opacity: 0.92; min-height: 1em; }
/* Storage bar */
.storage-bar { width: 100%; max-width: 400px; height: 50px; background: var(--bg-gradient); border-radius: 8px; margin: 0 auto 24px auto; box-shadow: var(--bg-shadow); position: relative; overflow: hidden; }
.storage-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #64e985 0%, #28c7b7 100%); border-radius: 8px 0 0 8px; transition: width 0.8s cubic-bezier(0.5,0.2,0.2,1.1); }
.storage-bar-text { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; align-items: baseline; justify-content: center; font-size: 0.97em; color: var(--text); text-shadow: 0 1px 2px #0007; letter-spacing: 0.03em; pointer-events: none; user-select: none; }
/* FOOTER NAV */
.footerNav {
    position: fixed;
    left: 0;
    bottom: 0;
    width: calc(100vw - 20px);
    background: var(--bg-footer);
    box-shadow: var(--bg-shadow);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 300;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    min-height: 64px;
    user-select: none;
    transition: background 0.18s;
}
.footerIcon { flex: 1 1 0; text-align: center; color: var(--text); padding: 7px 0 5px 0; cursor: pointer; font-size: 13px; font-family: inherit; display: flex; flex-direction: column; align-items: center; transition: color 0.17s, background 0.13s; border-radius: 11px; }
.footerIcon svg { display: block; margin-bottom: 2px; color: var(--text); width: 27px; height: 27px; transition: color 0.2s; }
.footerIcon:hover, .footerIcon:active { background: var(--bg-footer-hove); color: var(--text); }
.footerIcon span { display: block; font-size: 0.97em; margin-top: 1px; letter-spacing: 0.02em; }
/* MESSAGES */
.msg {
    margin: 14px;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 1em;
    font-weight: 500;
    opacity: 70%;
    box-shadow: 0 2px 10px 0 rgba(20,20,20,0.14);
}
.formMarginBt {
    margin-bottom: 15px;
}
.msg.error {
    background: linear-gradient(100deg, #e74c3c 70%, #922 100%);
    color: #fff;
    border: 1px solid #c1122c;
    text-shadow: 0 1px 6px #44000099;
}
.msg.success {
    background: linear-gradient(100deg, #293 70%, #5ec978 100%);
    color: #e4ffe7;
    border: 1px solid #14d97c;
    text-shadow: 0 1px 6px #003b0c90;
}
#applicationOptions {
    display:none;
    top: auto!important;
}
.token-box {
    word-break: break-all;
    background: var(--bg);
    padding: 12px 11px;
    margin-top: 17px;
    border-radius: 7px;
    color: var(--text);
    font-family: 'Fira Mono', 'Consolas',
    monospace; font-size: 1.02em;
    box-shadow: 0 1px 6px 0 #154a2b44;
    letter-spacing: 0.2px;
}
/* Dashboard force sync button */
#forceSyncBtn {
    float: right;
    right: 10px;
    top: 2px;
    position: absolute;
    background: none;
    border: none;
    border-radius: 50%;
    padding: 0 2px 0 0;
    margin-left: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.13s;
    outline: none;
    box-shadow: none;
    height: 24px;
    width: 24px;
    z-index: 1;
}
#forceSyncBtn svg {
    display: block;
    stroke: #65890f;
    filter: drop-shadow(0 0 2px #65890f);
    transition: stroke 0.18s, filter 0.13s;
}
/* 'edit-icon' for account page */
.edit-icon {
    cursor: pointer;
    vertical-align: middle;
    margin-left: 7px;
    filter: grayscale(0.3) brightness(1.2);
    transition: filter 0.15s, transform 0.13s;
}
.edit-icon:hover {
    filter: brightness(1.4) drop-shadow(0 1px 5px #cc0000);
    transform: scale(1.08);
}
/* Copy button for copy to clipboard */
.copy-container {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.copyBtn {
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 3px 7px 3px 7px;
    display: flex;
    align-items: center;
    margin-left: 4px;
    width: 32px;
    transition: background 0.13s;
    background: var(--bg);
    box-shadow: none;
}
.copyBtn:hover, .copyBtn:focus { background: var(--bg-footer-hove); }
.copyBtn svg { pointer-events: none; }
/* Download link for file download */
.download-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    background: #176afa;
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 5px;
    transition: color 0.14s;
    padding: 10px;
}
.download-link:hover {
    background: #1457cc;
}
.tabs-container {
    background: var(--bg);
    border-radius: 14px;
    padding: 22px 20px 20px 20px;
    box-shadow: var(--bg-shadow);
    margin: 0 0 10px 0;
}
.tabs {
    margin: 0;
    border-bottom: var(--border-bottom);
    gap: 8px;
    display: flex;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 10px;
}
.claimDateBlock {
    display: flex;
}
.claimDateBlock div {
    width: 50%;
}
.claimDateBlock .flexBlockDetails:nth-of-type(2) {
    margin-left: 20px;
}
.flexBlockDetails .columnTitle {
    width: 150px;
}
.tab-button {
    background: none;
    width: calc(100% / 3);
    border: none;
    color: var(--text);
    font-size: 1.11em;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
    margin-bottom: -1px;
    cursor: pointer;
    border-bottom: 2.5px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.12s;
}
#draggable {
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    display: none;
    color: var(--text);
    box-shadow: var(--bg-shadow);
    background: var(--container-bg);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    height: calc(100% - 40px);
}
.sync-accordion {
    margin-top: 6px;
    width:100%;
}
.sync-accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}
.sync-arrow {
    transition: transform 0.25s;
}
.sync-accordion-body {
    margin-left: 15px;
    margin-top: 5px;
}
#toggleResetBtn {
    color: #cc0000;
    font-weight: bold;
    text-decoration: none;
    box-shadow: none;
    background: var(--container-bg);
    width: 160px;
    font-size: 13px;
}
.draggablelabels {
    height: calc(100% - 50px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#cancelReset {
    background: var(--container-bg);
    color: #cc0000;
    cursor: pointer;
    border: none;
}
.forgotpassword {
    margin-top: 20px;
}
.tab-button.active {
    background: #6e98e4;
    color: #fff;
    box-shadow: var(--bg-shadow);
}
.tab-content {
    display: none;
    padding: 0 20px;
}
.tab-content.active {
    display: block;
    animation: fadeIn 0.23s;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.columnDetailsCommentBlock, .generalCommentBlock {
    margin-bottom: 19px;
}
.columnDetailsCommentBlock {
    margin-top: 10px;
}
.generalCommentBlock .columnTitle {
    color: var(--text)!important;
}
.columnBlock {
    background: var(--bg);
    padding: 12px 16px 10px 16px;
    border-radius: 7px;
    margin-bottom: 19px;
    margin-top: 19px;
    box-shadow: var(--bg-shadow);
}
.columnTitle {
    color: var(--field-color);
    font-size: 1.09em;
    margin-bottom: 3px;
}
#syncCommentsBtn,
.submitButt,
#syncDetailsBtn,
#addLabourBtn,
#addPartsBtn,
#addCommentBtn {
    background: linear-gradient(90deg, #65890f 0%, #65890f 100%);
    color: #ffff;
}
#syncCommentsBtn:hover,
.submitButt:hover,
#syncDetailsBtn:hover,
#addLabourBtn:hover,
#addPartsBtn:hover,
#addCommentBtn:hover {
    background: linear-gradient(90deg, #4a6213 0%, #6a8a20 100%);
}
#sbtEmail {
    background: #cc0000;
    color: #fff;
    box-shadow: var(--bg-shadow);
}
#sbtEmail:hover {
    background: #810707;
    color: #fff;
}
#loginBtn {
    background: linear-gradient(90deg, #cc0000 0%, #810707 100%);
    color: #fff;
    width: 100%;
    max-width: 100%;
    margin-top: 15px;
}
#loginBtn:hover {
    background: linear-gradient(90deg, #810707 0%, #630707 100%);
}
#select-all-btn,
#brand-sync-btn {
    width: 100%;
}
.columnContent textarea, .form-control.fileComment {
    width: calc(100% - 22px);
    background: var(--input-bg);
    color: var(--text);
    border: none;
    border-radius: 5px;
    padding: 7px 10px;
    font-size: 1em;
    resize: vertical;
    margin-bottom: 0;
    outline: none;
}
.recent-item {
    cursor: pointer;
    margin-bottom: 8px;
}
#moveList {
    margin: 10px 20px;
    padding-top: 10px;
    font-size: 1.03em;
}
#moveList .filterTitleLable {
    margin: 10px 0;
    width: 200px;
}
#serialFilterSearch .filterTitleLable {
    width: 130px;
}
#serialFilterSearch .serialFilterWrapper {
    width: calc(100% - 130px);
}
#thirdpartypart {
    width: 40px;
    height: 40px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    border: 1px solid var(--border, #ccc);
    border-radius: 4px;
    background-color: var(--input-bg);
    cursor: pointer;
    transition: box-shadow 0.16s, border-color 0.2s;
    vertical-align: middle;
    position: relative;
}
#thirdpartypart:hover,
#thirdpartypart:focus {
    box-shadow: var(--container-shadow);
    border-color: var(--accent, #909090);
}
#storeNameDisplay{
    color: var(--field-color);
    font-size: 1.19em;
    text-align: center;
    font-weight: 600;
    margin-top: 5px;
}
#thirdpartypart::after {
    content: "";
    position: absolute;
    inset: 0;
    mask-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 12.5l5 5 9-10' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 70%;
    background-color: var(--text);
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
#thirdpartypart:checked::after {
    opacity: 1;
    transform: scale(1);
}
.checkmark {
    display: none;
}
.uploadFileCommentBlock {
    background: var(--bg);
    padding: 12px 0 10px;
    border-radius: 7px;
    margin: 20px 0;
}
.uploadButt {
    background: #ff8400;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 17px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 11px;
}
.clearCachebutton {
    background: #ff8400;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 17px;
    font-size: 1em;
    cursor: pointer;
    margin: 0 10px;
}
.submitButt,
#addCommentBtn,
#sbtEmail {
    border: none;
    border-radius: 6px;
    padding: 9px 17px;
    font-size: 1em;
    cursor: pointer;
    margin-top: 11px;
}
.uploadedFiles {
    margin-top: 7px;
    color: #878787;
    font-size: 0.97em;
    line-height: 1.7em;
    word-break: break-all;
}
.date-picker-wrapper {
    max-width: 400px;
    width: 90%;
    position: relative;
    font-family: sans-serif;
    display: flex;
}
.resultBlock div {
    margin: 10px 0;
}
.claimType {
    margin: 10px 0;
    background: var(--bg);
    border-radius: 4px;
    padding: 5px;
    box-shadow: var(--bg-shadow);
}
.infoBlockTypeNumb {
    width: auto;
    display: flex;
}
.infoBlockNewClaimButton {
    margin-left: 20px;
}
.sync-arrow path {
    fill: var(--text);
}
.sync-item {
    cursor: pointer;
}
.pagination {
    display: flex; justify-content: center; gap: 8px; margin: 18px 0 4px 0;
}
.flexBlock {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
}
#descText {
    width:100%;
}
.flexColumnBlock {
    display: flex;
    flex-wrap: wrap;
}
.searchTypeFilterBlock {
    display: flex;
    justify-content: space-between;
}
.serialFilterWrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    width: calc(100% - 80px);
}
.pagination button {
    background: var(--bg);
    color: var(--text);
}
.flatpickr-innerContainer {
    justify-content: center;
}
.claimTypeBlock {
    display: flex;
    flex-direction: column;
    position: relative;
}
#claimTypeContainer {
    display: flex;
    align-items: center;
    cursor: pointer;
}
#claimTypeOptions {
    top: 30px;
}
#commentsPagination button.active {
    background: #65890f;
    color: #fff;
    font-weight: bold;
    border-radius: 5px;
}
.readonly-field {
    background: var(--bg)!important;
    cursor: auto;
}
#tabLabour .flexBlockDetails .columnTitle,
#tabLabour .flexBlockDetails .columnContent,
#tabParts .flexBlockDetails .columnTitle,
#tabParts .flexBlockDetails .columnContent,
#tabDetails .flexBlockDetails .columnTitle,
#tabDetails .flexBlockDetails .columnContent,
#tabDetails .flexBlockDetails .numberInput,
#tabLabour .flexBlockDetails .numberInput,
#tabParts .flexBlockDetails .numberInput {
    align-content: center;
}
.numberInput {
    width: 110px!important;
    margin-left: 10px;
}
#tabLabour .flexBlockDetails .columnTitle,
#tabParts .flexBlockDetails .columnTitle {
    width: auto;
}
#partsSearchDropdown {
    width: 100%;
}
.flexBlockDetails .columnContent {
    margin-left: 10px;
}
/* RESPONSIVE */
@media (max-width: 650px) {
    #tabLabour .flexBlockDetails .columnTitle,
    #tabLabour .flexBlockDetails .columnContent,
    #tabParts .flexBlockDetails .columnTitle,
    #tabParts .flexBlockDetails .columnContent,
    .claimStatusBlock .flexBlockDetails:nth-of-type(2) .columnTitle {
        width: auto!important;
    }
    #partsSearchDropdown {
        width: 150%;
    }
}
@media (max-width: 600px) {
    .form-container, .account-container, .faq-container, .filter-container, .filterMainBlock {
        margin: 10px 0 60px;
        padding-bottom: 22px;
        padding-right: 0;
        padding-left: 0;
        width: 100%;
    }
    .claimDateBlock {
        flex-direction: column;
    }
    .selectedSerialModel div {
        display: flex;
        flex-direction: column;
    }
    .selectedSerialModel {
        justify-content: space-around;
    }
    .claimDateBlock .flexBlockDetails:nth-of-type(2) {
        margin-left: 0;
    }
    .flexBlockDetails .columnContent {
        width: calc(100% - 160px) !important;
    }
    #partsSearchDropdown {
        width: 200%;
    }
    .claimDateBlock div {
        width: 100%;
    }
    .flatpickr-calendar.animate.open {
        width: 100%;
        height: 48%;
    }
    .dashboard-container {
        margin: 10px 0 60px;
        width: 100%;
    }
    #APPLICATION {
        width: calc(100% - 18px);
    }
    .flexBlock {
        justify-content: flex-end;
    }
    .tab-content {
        padding: 0;
    }
    .tab-button {
        padding: 10px 5px;
    }
    #loginBtn {
        width: calc(100% - 8px);
    }
    html, body { font-size: 15px; }
    h2 { font-size: 1.08em; margin-bottom: 13px; }
    .form-group { margin-bottom: 11px; }
    .token-box, .msg { font-size: 0.98em; padding: 8px 5px; margin-top: 11px; }
    button, .uploadButt, .submitButt, .submitFilter, .resetFilter { width: 100%; padding: 10px 0; font-size: 0.96em; border-radius: 5px; }
    input[type="text"], input[type="password"],input[type="number"], .autocomplete-input, .form-control.fileComment { width: calc(100% - 28px); padding: 9px; border-radius: 5px; font-size: 0.99em; }
    .brands-grid { grid-template-columns: repeat(2, 1fr); }
    .footerNav { min-height: 56px; }
    .footerIcon svg { width: 24px; height: 24px; }
    .footerIcon { font-size: 12px; }
}
@media (max-width: 550px) {
    #partsSearchDropdown {
        width: 150%;
    }
}
@media (max-width: 400px) {
    html, body { font-size: 14px; }
    h2 { font-size: 1em; }
    .serialNumberTable td {
        font-size: 0.8em;
    }
}
/* ==================== OFFLINE INDICATOR ==================== */
.offline-indicator {
    position: fixed;
    z-index: 10000;
    padding: 8px 14px;
    background: var(--container-bg);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
}
/* Position variants */
.offline-indicator--top-right {
    top: 12px;
    right: 12px;
}
.offline-indicator--top-left {
    top: 12px;
    left: 12px;
}
.offline-indicator--bottom-right {
    bottom: 72px;
    right: 12px;
}
.offline-indicator--bottom-left {
    bottom: 72px;
    left: 12px;
}
/* Hover effect */
.offline-indicator:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
/* Content layout */
.offline-indicator__content {
    display: flex;
    align-items: center;
    gap: 10px;
}
.offline-indicator__status {
    display: flex;
    align-items: center;
    gap: 6px;
}
/* Status dot */
.offline-indicator__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #6b7280;
    transition: background-color 0.3s ease;
}
/* Pulsing animation for syncing state */
.offline-indicator--syncing .offline-indicator__dot {
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.2);
    }
}
/* Status text */
.offline-indicator__text {
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
}
/* Pending badge */
.offline-indicator__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 9px;
    line-height: 1;
}
/* Connection quality indicator */
.offline-indicator__quality {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-left: 10px;
    border-left: 1px solid rgba(107, 114, 128, 0.3);
    font-size: 11px;
    font-weight: 600;
}
/* State-specific styles */
.offline-indicator--online .offline-indicator__dot {
    background-color: #10b981;
}
.offline-indicator--offline .offline-indicator__dot {
    background-color: #ef4444;
}
.offline-indicator--syncing .offline-indicator__dot {
    background-color: #f59e0b;
}
.offline-indicator--error .offline-indicator__dot {
    background-color: #dc2626;
}
/* Light mode adjustments */
body.light .offline-indicator {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
body.light .offline-indicator:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}
body.light .offline-indicator__quality {
    border-left-color: rgba(107, 114, 128, 0.2);
}
/* Mobile responsive */
@media (max-width: 768px) {
    .offline-indicator {
        font-size: 12px;
        padding: 6px 10px;
    }
    .offline-indicator--top-right,
    .offline-indicator--top-left {
        top: 8px;
    }
    .offline-indicator--top-right,
    .offline-indicator--bottom-right {
        right: 8px;
    }
    .offline-indicator--top-left,
    .offline-indicator--bottom-left {
        left: 8px;
    }
    .offline-indicator--bottom-right,
    .offline-indicator--bottom-left {
        bottom: 64px;
    }
    .offline-indicator__text {
        font-size: 12px;
    }
    .offline-indicator__quality {
        font-size: 10px;
    }
    .offline-indicator__dot {
        width: 7px;
        height: 7px;
    }
    .offline-indicator__badge {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
    }
}
/* Hide on very small screens */
@media (max-width: 400px) {
    .offline-indicator__quality {
        display: none !important;
    }
}
