/* Fonts available on Windows Server and desktops; no internet dependency. */
html, body {
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

html[dir="rtl"] body {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

/* Numbers, codes and amounts stay left-to-right inside Arabic text. */
.ltr, .mud-table-cell.ltr {
    direction: ltr;
    unicode-bidi: isolate;
}

/* ---- Sign-in pages (static HTML, no MudBlazor runtime) ---- */
.account-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0b4f8a 0%, #12355b 100%);
    padding: 16px;
}

.account-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    padding: 32px;
    width: 100%;
    max-width: 400px;
}

.account-title {
    font-size: 1.4rem;
    margin: 0 0 4px;
    color: #0b4f8a;
}

.account-subtitle {
    margin: 0 0 20px;
    color: #555;
}

.account-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.account-form input[type="text"],
.account-form input[type="password"],
.account-form input:not([type]) {
    padding: 10px 12px;
    border: 1px solid #c5ccd6;
    border-radius: 4px;
    font-size: 1rem;
    margin-bottom: 8px;
}

.account-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 12px;
}

.account-submit {
    background: #0b4f8a;
    color: #fff;
    border: 0;
    border-radius: 4px;
    padding: 11px;
    font-size: 1rem;
    cursor: pointer;
}

.account-submit:hover {
    background: #093f6e;
}

.account-error {
    background: #fdecea;
    color: #8a1c13;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.account-language {
    margin-top: 16px;
    text-align: center;
}

.validation-message {
    color: #b3261e;
    font-size: .85rem;
}

.account-codes {
    background: #f3f5f8;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 1rem;
    letter-spacing: .05em;
    white-space: pre-wrap;
}

.account-small {
    font-size: .75rem;
    color: #666;
    word-break: break-all;
}

/* Audit change table */
.audit-old {
    color: #8a1c13;
}

.audit-new {
    color: #1b5e20;
}

/* ---- Public tracking page (static HTML, no MudBlazor runtime) ---- */
.track-shell { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; background: #eef2f7; padding: 32px 16px; }
.track-card { background: #fff; border-radius: 8px; box-shadow: 0 6px 24px rgba(0, 0, 0, .12); padding: 28px; width: 100%; max-width: 560px; position: relative; }
.track-lang { position: absolute; top: 12px; inset-inline-end: 16px; font-size: 13px; }
.track-company { color: #12355b; font-weight: 700; font-size: 18px; }
.track-title { font-size: 22px; margin: 6px 0 12px; color: #1d2433; }
.track-status { display: inline-block; padding: 4px 12px; border-radius: 14px; background: #e3f0ff; color: #0b4f8a; font-weight: 600; margin-bottom: 16px; }
.track-status.done { background: #e3f6e8; color: #1b7a3a; }
.track-facts { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.track-facts th { text-align: start; color: #5b6475; font-weight: 400; padding: 5px 8px 5px 0; width: 40%; vertical-align: top; }
.track-facts td { padding: 5px 0; }
.track-steps { list-style: none; padding: 0; margin: 0; border-inline-start: 2px solid #d5dbe5; }
.track-steps li { position: relative; padding: 0 0 14px 18px; padding-inline-start: 18px; padding-inline-end: 0; color: #8a93a3; }
.track-steps li .dot { position: absolute; inset-inline-start: -7px; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #c5ccd8; }
.track-steps li.done { color: #1d2433; }
.track-steps li.done .dot { background: #1b7a3a; border-color: #1b7a3a; }
.track-steps .name { display: block; font-weight: 600; }
.track-steps .when { display: block; font-size: 13px; }
.track-note { color: #5b6475; font-size: 13px; }
.track-form { display: flex; gap: 8px; margin: 12px 0; }
.track-form input { flex: 1; padding: 10px; border: 1px solid #c5ccd8; border-radius: 6px; font-size: 16px; letter-spacing: 1px; }
.track-form button { padding: 10px 18px; border: 0; border-radius: 6px; background: #0b4f8a; color: #fff; font-size: 15px; cursor: pointer; }
.track-error { color: #b3261e; }

/* Search box in the top bar: white field on the blue bar. */
.global-search {
    width: min(460px, 50vw);
    margin-inline: 8px;
}

.global-search .mud-input-control {
    margin-top: 0;
}

.global-search .mud-input.mud-input-outlined {
    background-color: var(--mud-palette-surface);
    border-radius: 6px;
}
