/* =========================================================================
   FaithCargo · Modern UI layer
   -------------------------------------------------------------------------
   Is file ko legacy theme (style.pink.css) ke BAAD load kiya jata hai.
   Sirf presentation override karta hai - koi server-side behaviour change
   nahi. Print pages (awbprint / Printawb / onlineprint) is ko load nahi
   karte, is liye label printing par koi asar nahi hota.
   ========================================================================= */

:root {
    --fc-primary: #e11d48;
    --fc-primary-600: #be123c;
    --fc-primary-soft: #fff1f2;
    --fc-primary-line: #fecdd3;
    --fc-ink: #0f172a;
    --fc-ink-2: #1e293b;
    --fc-body: #334155;
    --fc-muted: #64748b;
    --fc-faint: #94a3b8;
    --fc-bg: #f4f6fb;
    --fc-surface: #ffffff;
    --fc-border: #e6e8f0;
    --fc-sidebar: #0f172a;
    --fc-sidebar-2: #111c33;
    --fc-radius: 18px;
    --fc-radius-sm: 10px;
    --fc-shadow: 0 18px 40px -32px rgba(15, 23, 42, .55);
    --fc-shadow-lg: 0 30px 70px -40px rgba(15, 23, 42, .65);
    --fc-header-h: 69px;
    --fc-font: 'Poppins', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

/* ------------------------------------------------------------------ base */
html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--fc-font);
    font-size: 14px;
    line-height: 1.6;
    color: var(--fc-body);
    background: var(--fc-bg);
    background-image:
        radial-gradient(1100px 520px at 8% -12%, rgba(225, 29, 72, .07), transparent 62%),
        radial-gradient(900px 480px at 105% 0%, rgba(59, 130, 246, .07), transparent 60%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.fc-booting {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--fc-ink);
    letter-spacing: -.01em;
}

a {
    color: var(--fc-primary);
}

a:hover, a:focus {
    color: var(--fc-primary-600);
}

/* legacy theme ka `body { overflow-x: hidden }` body ko scroll container bana
   deta hai — us se sticky header/footer kaam nahi karte. `clip` same clipping
   deta hai lekin naya scroll container nahi banata. */
body {
    overflow-x: clip;
}

html {
    /* sticky header ke neeche anchor jump na chhupe */
    scroll-padding-top: calc(var(--fc-header-h) + 14px);
}

.page {
    background: transparent;
    /* sticky header/sidebar ke liye scroll container banne se roko */
    overflow-x: hidden; /* fallback */
    overflow-x: clip;
}

/* ------------------------------------------------------- preloader (FC) */
#fc-preloader {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(720px 420px at 50% 18%, rgba(225, 29, 72, .22), transparent 70%),
        radial-gradient(900px 600px at 50% 120%, rgba(30, 64, 175, .20), transparent 65%),
        linear-gradient(160deg, #0b1220 0%, #0f172a 45%, #111c33 100%);
    opacity: 1;
    visibility: visible;
    transition: opacity .5s ease, visibility .5s ease;
}

#fc-preloader.is-done {
    opacity: 0;
    visibility: hidden;
}

.fc-preloader__box {
    width: 100%;
    max-width: 280px;
    text-align: center;
    padding: 0 20px;
}

.fc-preloader__logo {
    width: 78px;
    height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #fff;
    background: linear-gradient(135deg, var(--fc-primary) 0%, #fb7185 100%);
    box-shadow: 0 22px 45px -18px rgba(225, 29, 72, .85), inset 0 1px 0 rgba(255, 255, 255, .35);
    position: relative;
    animation: fc-float 2.6s ease-in-out infinite;
}

.fc-preloader__logo::after {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 30px;
    border: 1px solid rgba(244, 63, 94, .35);
    animation: fc-pulse 2.2s ease-out infinite;
}

.fc-preloader__name {
    margin: 22px 0 0;
    font-size: 15px;
    font-weight: 300;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: #e2e8f0;
}

.fc-preloader__name span {
    font-weight: 700;
    color: #fb7185;
}

.fc-preloader__bar {
    width: 188px;
    height: 4px;
    margin: 20px auto 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, .18);
    overflow: hidden;
}

.fc-preloader__bar span {
    display: block;
    height: 100%;
    width: 45%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--fc-primary), #fb7185);
    box-shadow: 0 0 18px rgba(244, 63, 94, .7);
    animation: fc-slide 1.15s cubic-bezier(.65, .05, .36, 1) infinite;
}

.fc-preloader__hint {
    margin: 14px 0 0;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, .75);
}

@keyframes fc-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes fc-pulse {
    0% { transform: scale(.9); opacity: .9; }
    100% { transform: scale(1.12); opacity: 0; }
}

@keyframes fc-slide {
    0% { transform: translateX(-115%); }
    60% { transform: translateX(55%); }
    100% { transform: translateX(235%); }
}

/* -------------------------------------------- postback / ajax busy bar */
#fc-busy {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 2147483001;
    pointer-events: none;
    opacity: 0;
    transform: scaleX(.12);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--fc-primary), #fb7185 60%, #f97316);
    border-radius: 0 999px 999px 0;
    transition: opacity .18s ease;
}

#fc-busy.is-on {
    opacity: 1;
    animation: fc-busy 1.25s ease-in-out infinite;
}

@keyframes fc-busy {
    0% { transform: scaleX(.12); }
    50% { transform: scaleX(.72); }
    100% { transform: scaleX(.98); }
}

/* ----------------------------------------------------------- top navbar */
/* header wrapper ko sticky rakho: navbar ka containing block sirf header hai,
   is liye navbar par sticky lagane se header scroll hote hi chala jata tha. */
header.header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

nav.navbar {
    position: relative;
    top: auto;
    background: rgba(255, 255, 255, .88);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    color: var(--fc-ink);
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 12px 30px -26px rgba(15, 23, 42, .8);
    z-index: auto;
}

nav.navbar a {
    color: var(--fc-ink);
}

nav.navbar .container-fluid {
    padding: 0 26px;
}

nav.navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 18px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1;
}

nav.navbar .navbar-header {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 6px;
}

nav.navbar .navbar-brand::before {
    content: "";
    width: 92px;
    height: 38px;
    flex: 0 0 92px;
    border-radius: 10px;
    background: #fff url('../img/logo.jpg') center / contain no-repeat;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .07), 0 8px 18px -14px rgba(15, 23, 42, .5);
}

nav.navbar .navbar-brand .brand-small {
    display: none !important;
}

nav.navbar .navbar-brand .brand-big {
    display: block !important;
}

nav.navbar .menu-btn {
    width: 34px;
    height: 34px;
    margin-right: 14px;
    padding: 7px 8px;
    border-radius: 10px;
    background: #f1f5f9;
    transition: background .2s ease;
}

nav.navbar .menu-btn:hover {
    background: #e2e8f0;
}

nav.navbar .menu-btn span {
    width: 18px !important;
    height: 2px;
    margin: 4px auto 0;
    border-radius: 2px;
    background: var(--fc-ink);
}

nav.navbar .menu-btn span:nth-of-type(2) {
    width: 18px !important;
    transform: none;
}

nav.navbar .menu-btn span:nth-of-type(2)::before,
nav.navbar .menu-btn span:nth-of-type(2)::after {
    display: none;
}

nav.navbar .menu-btn.active span:first-of-type {
    transform: translateY(6px) rotate(45deg);
}

nav.navbar .menu-btn.active span:nth-of-type(2) {
    opacity: 0;
    transform: none;
}

nav.navbar .menu-btn.active span:last-of-type {
    transform: translateY(-6px) rotate(-45deg);
}

nav.navbar .nav-menu {
    align-items: center;
    gap: 10px;
    margin: 0;
}

nav.navbar .nav-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

nav.navbar .nav-item > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

nav.navbar .nav-link.logout {
    padding: 8px 15px;
    border-radius: 999px;
    border: 1px solid var(--fc-border);
    background: #fff;
    color: var(--fc-muted);
    font-size: 12.5px;
    font-weight: 600;
    transition: all .18s ease;
}

nav.navbar .nav-link.logout:hover {
    color: var(--fc-primary-600);
    border-color: var(--fc-primary-line);
    background: var(--fc-primary-soft);
}

nav.navbar .nav-item > a.logout i {
    margin-left: 0;
    font-size: 13px;
}

/* home page quick-tools (AWB search + print + cancel) */
/* legacy decorative search icon — koi search-box markup nahi hai, is liye hide */
nav.navbar #search {
    display: none !important;
}

nav.navbar .nav-menu .nav-item:first-child {
    flex-wrap: wrap;
    justify-content: flex-end;
}

nav.navbar .nav-menu input[type="text"] {
    flex: 0 1 210px;
    width: 210px;
    min-width: 176px;
    padding: 9px 15px;
    border: 1px solid var(--fc-border);
    border-radius: 999px;
    background: #f8fafc;
    font-family: inherit;
    font-size: 12.5px;
    color: var(--fc-ink);
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

nav.navbar .nav-menu input[type="text"]::placeholder {
    color: var(--fc-faint);
}

nav.navbar .nav-menu input[type="text"]:focus {
    outline: none;
    background: #fff;
    border-color: #fda4af;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, .12);
}

nav.navbar .nav-menu .btn {
    padding: 9px 15px;
    font-size: 12px;
    border-radius: 999px;
}

nav.navbar .nav-menu .nav-item > i {
    display: none;
}

/* -------------------------------------------------------------- sidebar */
nav.side-navbar {
    align-self: flex-start;
    position: sticky;
    top: var(--fc-header-h);
    height: calc(100vh - var(--fc-header-h));
    margin-left: 0;
    min-width: 250px;
    max-width: 250px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(178deg, #0f172a 0%, #111c33 52%, #0b1220 100%);
    color: #cbd5e1;
    border-right: 1px solid rgba(148, 163, 184, .12);
    box-shadow: 22px 0 50px -42px rgba(2, 6, 23, .9);
    z-index: 1020;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, .35) transparent;
}

nav.side-navbar::-webkit-scrollbar {
    width: 6px;
}

nav.side-navbar::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, .32);
    border-radius: 999px;
}

nav.side-navbar .sidebar-header {
    margin: 14px 12px 6px;
    padding: 18px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .045);
    border: 1px solid rgba(148, 163, 184, .16);
}

nav.side-navbar .title {
    margin-left: 0;
}

nav.side-navbar .title h1 {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    color: #fff;
    letter-spacing: 0;
}

nav.side-navbar .title h1 span {
    color: #ffffff !important;
    font-weight: 600;
}

nav.side-navbar .title h1 span span,
nav.side-navbar .title h1 > b > span {
    color: #fda4af !important;
}

nav.side-navbar .title p {
    margin: 0;
    font-size: 11.5px;
    line-height: 1.7;
    color: #94a3b8;
    font-weight: 400;
}

nav.side-navbar .title p b {
    font-weight: 500;
}

nav.side-navbar .title p b span {
    color: #cbd5e1 !important;
}

nav.side-navbar ul {
    padding: 8px 12px 20px;
}

nav.side-navbar ul a {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 3px 0;
    padding: 11px 14px;
    border: 0;
    border-radius: 12px;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .01em;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

nav.side-navbar ul a i {
    width: 20px;
    min-width: 20px;
    margin: 0;
    text-align: center;
    font-size: 14px;
    color: #94a3b8;
    transition: color .18s ease;
}

nav.side-navbar .fc-nav-label {
    flex: 1 1 auto;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

nav.side-navbar ul a:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
    border-left: 0;
    transform: translateX(2px);
}

nav.side-navbar ul a:hover i {
    color: #fda4af;
}

nav.side-navbar ul li.active a {
    background: linear-gradient(135deg, var(--fc-primary) 0%, #f43f5e 100%);
    color: #fff;
    box-shadow: 0 14px 26px -16px rgba(225, 29, 72, .95);
}

nav.side-navbar ul li.active a i {
    color: #fff;
}

nav.side-navbar ul li.active a:hover {
    background: linear-gradient(135deg, #e11d48 0%, #fb7185 100%);
    transform: none;
}

nav.side-navbar ul ul a {
    padding-left: 46px;
    background: transparent;
}

/* collapsed (desktop) state */
nav.side-navbar.shrinked {
    min-width: 90px;
    max-width: 90px;
}

nav.side-navbar.shrinked .sidebar-header {
    padding: 14px 8px;
}

nav.side-navbar.shrinked .sidebar-header .title {
    display: none;
}

nav.side-navbar.shrinked ul {
    padding: 8px 10px 20px;
}

nav.side-navbar.shrinked ul a {
    justify-content: center;
    gap: 0;
    padding: 12px;
    font-size: 13px;
    color: #cbd5e1;
}

nav.side-navbar.shrinked ul a .fc-nav-label {
    display: none;
}

nav.side-navbar.shrinked ul a i {
    font-size: 16px;
}

/* ------------------------------------------------------- content shell */
.content-inner {
    width: calc(100% - 250px);
    min-height: calc(100vh - var(--fc-header-h));
    display: flex;
    flex-direction: column;
}

.content-inner.active {
    width: calc(100% - 90px);
}

header.page-header {
    background: transparent;
    box-shadow: none;
    padding: 26px 0 0;
}

/* content ke andar sab containers ka same gutter */
.content-inner .container-fluid {
    padding-left: 26px;
    padding-right: 26px;
}

nav.fc-breadcrumb {
    padding: 0 26px;
}

header.page-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--fc-ink);
}

.breadcrumb {
    background: transparent;
    padding: 8px 0 0;
    margin: 0;
    border-radius: 0;
}

.breadcrumb .breadcrumb-item {
    color: var(--fc-faint);
    font-size: 12px;
    font-weight: 400;
}

.breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    color: #cbd5e1;
    padding: 0 8px;
}

.breadcrumb .breadcrumb-item a {
    color: var(--fc-muted);
}

.breadcrumb .breadcrumb-item a:hover {
    color: var(--fc-primary);
}

.breadcrumb .breadcrumb-item.active {
    color: var(--fc-primary);
    font-weight: 500;
}

section.forms {
    padding: 14px 0 8px;
}

section.forms .container-fluid {
    padding: 0 26px;
}

/* ---------------------------------------------------------------- cards */
.card {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    margin-bottom: 24px;
    transition: box-shadow .22s ease, transform .22s ease;
}

.card:hover {
    box-shadow: var(--fc-shadow-lg);
}

.card-header {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    border-bottom: 1px solid #eef1f6;
    border-radius: var(--fc-radius) var(--fc-radius) 0 0;
    padding: 16px 22px;
    box-shadow: none;
}

.card-header h3,
.card-header .h4,
.card-header h4 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--fc-ink);
    letter-spacing: -.01em;
}

.card-body {
    padding: 20px 22px 22px;
}

.card > .card-body:first-child {
    padding-top: 22px;
}

/* card ke andar seedha row ho to uske negative margins reset karo */
.card > .row {
    margin-left: 0;
    margin-right: 0;
}

.card .line {
    height: 1px;
    margin: 16px 0;
    background: #eef1f6;
}

/* --------------------------------------------------------------- tables */
.table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--fc-body);
    background: transparent;
}

.table.table-responsive {
    display: table;
    width: 100%;
    overflow: visible;
}

.table thead th {
    padding: 12px 14px;
    background: #f8fafc;
    border-top: 0;
    border-bottom: 1px solid var(--fc-border);
    color: var(--fc-muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
}

.table tbody td,
.table tr td {
    padding: 12px 14px;
    border-top: 1px solid #f1f5f9;
    font-size: 12.5px;
    vertical-align: middle;
}

.table tbody tr:first-child td {
    border-top: 0;
}

.table-striped tbody tr:nth-of-type(odd) {
    background: #fcfdff;
}

.table tbody tr:hover,
.table-hover tbody tr:hover {
    background: #fff7f8;
}

.table td a {
    color: var(--fc-primary);
    font-weight: 500;
}

.fc-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -2px;
    padding: 0 2px;
}

.fc-table-scroll .table {
    min-width: 640px;
}

/* GridView pager (nested table) => pill style */
.card table table {
    border-collapse: separate;
    border-spacing: 4px;
}

.card table table td {
    padding: 0;
    border: 0;
    background: transparent;
}

.card table table a,
.card table table span {
    display: inline-block;
    min-width: 30px;
    padding: 6px 9px;
    border-radius: 9px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    transition: background .16s ease, color .16s ease;
}

.card table table a:hover {
    background: #ffe4e6;
    color: var(--fc-primary-600);
}

.card table table span {
    background: linear-gradient(135deg, var(--fc-primary), #f43f5e);
    color: #fff;
}

/* --------------------------------------------------------------- forms */
.form-group {
    margin-bottom: 14px;
}

.form-control {
    height: auto;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 13.5px;
    line-height: 1.5;
    color: var(--fc-ink);
    background-color: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--fc-radius-sm);
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.form-control:focus {
    color: var(--fc-ink);
    background-color: #fff;
    border-color: #fda4af;
    box-shadow: 0 0 0 4px rgba(225, 29, 72, .10);
}

.form-control::placeholder {
    color: var(--fc-faint);
    text-transform: none;
}

select.form-control {
    height: auto;
    min-height: 42px;
    padding-right: 34px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

input[type="checkbox"] {
    accent-color: var(--fc-primary);
    width: 15px;
    height: 15px;
}

/* FileUpload (bulk order) – native input ko modern dropzone jaisa dikhao */
input[type="file"].btn {
    max-width: 100%;
    padding: 7px 12px;
    background: #fff;
    border: 1px dashed #cbd5e1;
    color: var(--fc-muted);
    font-weight: 500;
    box-shadow: none;
}

input[type="file"].btn:hover {
    transform: none;
    background: #fff;
    border-color: #fda4af;
}

input[type="file"].btn::file-selector-button {
    margin-right: 10px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--fc-primary-soft);
    color: var(--fc-primary-600);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

hr {
    margin: 18px 0;
    border: 0;
    border-top: 1px solid #eef1f6;
}

/* -------------------------------------------------------------- buttons */
.btn {
    font-family: inherit;
    font-size: .85rem;
    font-weight: 600;
    line-height: 1.45;
    padding: .55rem 1.15rem;
    border: 0;
    border-radius: var(--fc-radius-sm);
    letter-spacing: .01em;
    box-shadow: none;
    transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease, color .16s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn:active,
.btn.active {
    transform: none;
}

.btn:focus,
.btn:active:focus {
    box-shadow: 0 0 0 4px rgba(225, 29, 72, .16);
}

.btn-primary {
    color: #fff;
    background-color: var(--fc-primary);
    background-image: linear-gradient(135deg, var(--fc-primary) 0%, #f43f5e 100%);
    box-shadow: 0 12px 24px -14px rgba(225, 29, 72, .9);
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background-color: var(--fc-primary-600);
    background-image: linear-gradient(135deg, var(--fc-primary-600) 0%, #e11d48 100%);
    box-shadow: 0 16px 28px -14px rgba(190, 18, 60, .95);
}

.btn-info {
    color: #fff;
    background-color: var(--fc-ink);
    background-image: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    box-shadow: 0 12px 24px -16px rgba(15, 23, 42, .95);
}

.btn-info:hover,
.btn-info:focus {
    color: #fff;
    background-image: linear-gradient(135deg, #0f172a 0%, #020617 100%);
}

.btn-danger {
    color: #b91c1c;
    background-color: #fee2e2;
    background-image: none;
    box-shadow: none;
}

.btn-danger:hover,
.btn-danger:focus {
    color: #991b1b;
    background-color: #fecaca;
}

.btn-secondary {
    color: #334155;
    background-color: #eef2f7;
    background-image: none;
}

.btn-secondary:hover,
.btn-secondary:focus {
    color: #0f172a;
    background-color: #e2e8f0;
}

.btn-lg {
    padding: .78rem 1.4rem;
    font-size: .95rem;
    border-radius: 12px;
}

.btn-sm {
    padding: .4rem .85rem;
    font-size: .78rem;
}

.btn-block {
    width: 100%;
}

#lblmsg,
.fc-alert {
    display: block;
    margin-top: 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: var(--fc-primary-600);
}

#lblmsg:empty,
.fc-alert:empty {
    display: none;
}

/* ---------------------------------------------------- dashboard counters */
section.dashboard-counts {
    padding-top: 22px;
}

section.dashboard-counts .row {
    padding: 8px;
    margin: 0 0 24px;
    background: #fff;
    border: 1px solid var(--fc-border);
    border-radius: 20px;
    box-shadow: var(--fc-shadow);
}

section.dashboard-counts div[class*='col-'] .item {
    margin: 6px;
    padding: 18px 16px;
    border-right: 0;
    border-radius: 16px;
    transition: background .18s ease;
}

section.dashboard-counts div[class*='col-'] .item:hover {
    background: #fbfcfe;
}

section.dashboard-counts .icon {
    width: 46px;
    height: 46px;
    line-height: 46px;
    min-width: 46px;
    max-width: 46px;
    border-radius: 14px;
    font-size: 16px;
    box-shadow: 0 12px 24px -16px rgba(15, 23, 42, .7);
}

section.dashboard-counts .icon.bg-violet {
    background-image: linear-gradient(135deg, #7c3aed, #a78bfa) !important;
}

section.dashboard-counts .icon.bg-red {
    background-image: linear-gradient(135deg, #e11d48, #fb7185) !important;
}

section.dashboard-counts .icon.bg-green {
    background-image: linear-gradient(135deg, #059669, #34d399) !important;
}

section.dashboard-counts .icon.bg-orange {
    background-image: linear-gradient(135deg, #ea580c, #fb923c) !important;
}

section.dashboard-counts .title {
    margin: 0 16px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--fc-muted);
    line-height: 1.35;
}

section.dashboard-counts .title a {
    color: inherit;
}

section.dashboard-counts .title a:hover {
    color: var(--fc-primary);
}

section.dashboard-counts .number {
    margin-left: auto;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--fc-ink);
    font-variant-numeric: tabular-nums;
}

section.dashboard-counts .number strong {
    font-weight: 700;
}

.progress {
    height: 6px;
    margin-top: 10px;
    background-color: #eef2f7;
    border-radius: 999px;
    box-shadow: none;
    overflow: hidden;
}

.progress-bar {
    max-width: 100%;
    border-radius: 999px;
    box-shadow: none;
    transition: width .6s ease;
}

.progress-bar.bg-violet {
    background-image: linear-gradient(90deg, #7c3aed, #a78bfa) !important;
}

.progress-bar.bg-red {
    background-image: linear-gradient(90deg, #e11d48, #fb7185) !important;
}

.progress-bar.bg-green {
    background-image: linear-gradient(90deg, #059669, #34d399) !important;
}

.progress-bar.bg-orange {
    background-image: linear-gradient(90deg, #ea580c, #fb923c) !important;
}

/* --------------------------------------------------------------- footer */
/* footer hamesha viewport ke bottom par visible rahe (short + long pages) */
footer.main-footer {
    position: sticky;
    bottom: 0;
    z-index: 1015;
    margin-top: auto;
    padding: 14px 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .92) 0%, rgba(248, 250, 252, .98) 100%);
    color: var(--fc-faint);
    border-top: 1px solid rgba(148, 163, 184, .22);
    -webkit-backdrop-filter: saturate(180%) blur(10px);
    backdrop-filter: saturate(180%) blur(10px);
}

footer.main-footer .row {
    align-items: center;
}

footer.main-footer p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--fc-faint);
}

footer.main-footer .col-sm-6:first-child p::before {
    content: "FC";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--fc-primary) 0%, #fb7185 100%);
    color: #fff;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: 0 8px 16px -10px rgba(225, 29, 72, .9);
}

footer.main-footer .text-right p {
    justify-content: flex-end;
}

footer.main-footer a {
    color: var(--fc-primary);
    font-weight: 500;
    text-decoration: none;
}

footer.main-footer a:hover {
    color: var(--fc-primary-600);
    text-decoration: underline;
}

/* ------------------------------------ datepicker / autocomplete (polish) */
.datepicker {
    padding: 10px;
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    box-shadow: var(--fc-shadow-lg);
    font-family: var(--fc-font);
    font-size: 12px;
    color: var(--fc-body);
}

.datepicker table tr td,
.datepicker table tr th {
    border-radius: 8px;
    width: 32px;
    height: 32px;
}

.datepicker table tr td.day:hover,
.datepicker table tr td span:hover {
    background: var(--fc-primary-soft);
    color: var(--fc-primary-600);
}

.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td span.active {
    background: linear-gradient(135deg, var(--fc-primary), #f43f5e) !important;
    color: #fff !important;
    text-shadow: none;
}

.datepicker table tr td.today {
    background: #fff7ed;
    color: #c2410c;
}

.datepicker .datepicker-switch,
.datepicker .prev,
.datepicker .next {
    font-weight: 600;
    color: var(--fc-ink);
}

.ui-autocomplete {
    z-index: 2000;
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--fc-shadow-lg);
    font-family: var(--fc-font);
    font-size: 12.5px;
}

.ui-menu-item-wrapper {
    padding: 8px 10px;
    border-radius: 8px;
}

.ui-menu-item-wrapper.ui-state-active {
    margin: 0;
    border: 0;
    background: var(--fc-primary-soft);
    color: var(--fc-primary-600);
}

/* ---------------------------------------------- UpdateProgress (ajax) */
.modal2 {
    position: fixed;
    inset: 0;
    z-index: 1400;
    height: 100%;
    width: 100%;
    background: rgba(15, 23, 42, .55) !important;
    opacity: 1 !important;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.modal2 .center2 {
    margin: 22vh auto 0;
    width: 190px;
    padding: 22px 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--fc-shadow-lg);
    text-align: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--fc-muted);
    opacity: 1;
}

.modal2 .center2 img {
    display: block;
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 12px;
    object-fit: contain;
}

/* --------------------------------------------------- mobile nav drawer */
.fc-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1070;
    background: rgba(2, 6, 23, .5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}

.fc-nav-backdrop.is-on {
    opacity: 1;
    visibility: visible;
}

body.fc-nav-locked {
    overflow: hidden;
}

/* drawer ke andar close button (desktop par hidden) */
nav.side-navbar .fc-nav-close {
    display: none;
    position: absolute;
    top: 16px;
    right: 14px;
    z-index: 5;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 1px solid rgba(148, 163, 184, .28);
    border-radius: 10px;
    background: rgba(255, 255, 255, .08);
    color: #e2e8f0;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    transition: background .18s ease, color .18s ease;
}

nav.side-navbar .fc-nav-close:hover,
nav.side-navbar .fc-nav-close:focus {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    outline: none;
}

/* ======================================================================
   LOGIN / AUTH PAGE (Default.aspx)
   ====================================================================== */
body.fc-auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 28px 20px;
    background:
        radial-gradient(900px 480px at 12% -8%, rgba(225, 29, 72, .16), transparent 62%),
        radial-gradient(800px 420px at 108% 4%, rgba(37, 99, 235, .14), transparent 60%),
        linear-gradient(180deg, #f7f9fd 0%, #eef2f9 100%);
}

.fc-auth {
    width: 100%;
    max-width: 980px;
    margin: 0;
}

.fc-auth__card {
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    background: #fff;
    border: 1px solid rgba(226, 232, 240, .9);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 50px 110px -60px rgba(15, 23, 42, .65);
}

.fc-auth__brand {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 44px 42px;
    color: #e2e8f0;
    background:
        radial-gradient(520px 320px at 110% -10%, rgba(225, 29, 72, .38), transparent 60%),
        radial-gradient(420px 300px at -20% 110%, rgba(37, 99, 235, .32), transparent 62%),
        linear-gradient(165deg, #0b1220 0%, #0f172a 48%, #131f36 100%);
    overflow: hidden;
}

.fc-auth__brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 72%);
    mask-image: radial-gradient(circle at 30% 20%, #000 0%, transparent 72%);
    pointer-events: none;
}

.fc-auth__brand > * {
    position: relative;
    z-index: 1;
}

.fc-auth__logo {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .04em;
    color: #fff;
    background: linear-gradient(135deg, var(--fc-primary), #fb7185);
    box-shadow: 0 20px 40px -18px rgba(225, 29, 72, .9), inset 0 1px 0 rgba(255, 255, 255, .35);
}

.fc-auth__brand h1 {
    margin: 6px 0 0;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: #fff;
}

.fc-auth__brand h1 span {
    display: block;
    margin-top: 9px;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #fda4af;
}

.fc-auth__brand p {
    margin: 0;
    max-width: 34ch;
    font-size: 13px;
    line-height: 1.75;
    color: #94a3b8;
}

.fc-auth__features {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.fc-auth__features li {
    position: relative;
    padding-left: 30px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #cbd5e1;
}

.fc-auth__features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 1px solid rgba(244, 63, 94, .45);
    background-color: rgba(225, 29, 72, .18);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath fill='none' stroke='%23fda4af' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='M1 4.2 3.6 6.8 9 1.4'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
}

.fc-auth__meta {
    margin-top: auto;
    padding-top: 16px;
    font-size: 10.5px;
    letter-spacing: .04em;
    color: #64748b;
}

.fc-auth__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 46px 44px;
}

.fc-eyebrow {
    margin: 0 0 10px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--fc-primary);
}

.fc-auth__form h2 {
    margin: 0 0 6px;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--fc-ink);
}

.fc-auth__form .fc-sub {
    margin: 0 0 24px;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--fc-muted);
}

.fc-field {
    margin-bottom: 16px;
}

.fc-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .02em;
    color: #334155;
}

.fc-field .form-control {
    height: 46px;
    padding: 11px 15px;
    font-size: 13.5px;
    border-radius: 12px;
}

.fc-pass {
    position: relative;
}

.fc-pass .form-control {
    padding-right: 72px;
}

.fc-pass__toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    padding: 8px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--fc-primary);
    font-family: inherit;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
}

.fc-pass__toggle:hover {
    background: var(--fc-primary-soft);
}

.fc-auth__submit {
    width: 100%;
    margin-top: 4px;
    padding: 13px 18px;
    border-radius: 12px;
    font-size: 14px;
    letter-spacing: .01em;
}

.fc-auth__form .fc-alert {
    margin-top: 14px;
}

.fc-auth__help {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid #eef1f6;
    font-size: 11.5px;
    line-height: 1.7;
    color: var(--fc-faint);
}

.fc-auth__help a {
    color: var(--fc-primary);
    font-weight: 600;
}

/* ======================================================================
   RESPONSIVE
   ====================================================================== */
/* 992px - 1200px: legacy theme sidebar ko 90px icon-rail bana deta hai —
   yahan full sidebar visible rakho (drawer sirf tablet/mobile par). */
@media (min-width: 992px) and (max-width: 1200px) {
    nav.side-navbar {
        margin-left: 0;
        min-width: 250px;
        max-width: 250px;
        text-align: left;
    }

    nav.side-navbar .sidebar-header .title {
        display: block;
    }

    nav.side-navbar ul a {
        padding: 11px 14px;
        font-size: 13px;
    }

    nav.side-navbar ul a i {
        display: inline-block;
        margin: 0;
        font-size: 14px;
    }

    .content-inner,
    .content-inner.active {
        width: calc(100% - 250px);
    }
}

@media (max-width: 991.98px) {
    :root {
        --fc-header-h: 0px;
    }

    nav.navbar .container-fluid {
        padding: 0 16px;
    }

    nav.navbar .navbar-header {
        flex: 1 1 auto;
    }

    nav.navbar .menu-btn {
        order: -1;
        margin-right: 0;
    }

    nav.navbar .navbar-brand::before {
        width: 76px;
        height: 34px;
        flex: 0 0 76px;
    }

    nav.side-navbar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 272px;
        min-width: 0;
        max-width: 86vw;
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        border-radius: 0 20px 20px 0;
        text-align: left;
        transform: translateX(-105%);
        transition: transform .28s ease;
        z-index: 1080;
        box-shadow: 40px 0 80px -50px rgba(2, 6, 23, .9);
    }

    nav.side-navbar .sidebar-header {
        padding-right: 54px;
    }

    nav.side-navbar .sidebar-header .title {
        display: block;
    }

    nav.side-navbar ul a {
        justify-content: flex-start;
        text-align: left;
    }

    nav.side-navbar .fc-nav-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    nav.side-navbar.fc-nav-open {
        transform: translateX(0);
    }

    nav.side-navbar.shrinked {
        margin-left: 0;
        min-width: 272px;
        max-width: 86vw;
        text-align: left;
    }

    nav.side-navbar.shrinked .sidebar-header .title,
    nav.side-navbar.shrinked ul a .fc-nav-label {
        display: block;
    }

    nav.side-navbar.shrinked ul a {
        justify-content: flex-start;
        gap: 12px;
        padding: 11px 14px;
        font-size: 13px;
        color: #cbd5e1;
    }

    nav.side-navbar.shrinked ul a i {
        font-size: 14px;
    }

    .content-inner,
    .content-inner.active {
        width: 100% !important;
        min-height: calc(100vh - 70px);
    }

    nav.navbar .navbar-holder {
        flex-wrap: wrap;
        row-gap: 8px;
    }

    nav.navbar .nav-menu {
        flex: 0 1 auto;
        width: auto;
        margin-left: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px;
    }

    nav.navbar .nav-menu .nav-item:first-child {
        order: 0;
        flex: 0 1 auto;
        width: auto;
        min-width: 0;
        margin-top: 0;
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
    }

    nav.navbar .nav-menu input[type="text"] {
        flex: 0 1 150px;
        width: 150px;
        min-width: 110px;
    }

    nav.navbar .nav-menu .btn {
        flex: 0 0 auto;
    }

    section.forms .container-fluid {
        padding: 0 16px;
    }

    .content-inner .container-fluid {
        padding-left: 16px;
        padding-right: 16px;
    }

    nav.fc-breadcrumb {
        padding: 0 16px;
    }

    header.page-header {
        padding-top: 18px;
    }

    .breadcrumb {
        padding-top: 6px;
    }
}

@media (max-width: 575.98px) {
    nav.navbar .navbar-brand .brand-big {
        display: none !important;
    }

    nav.navbar .navbar-brand {
        gap: 0;
        margin-right: 10px;
    }

    nav.navbar .nav-link.logout span {
        display: none;
    }

    nav.navbar .nav-link.logout {
        padding: 9px 11px;
    }

    nav.navbar .nav-menu .btn {
        padding: 9px 12px;
    }

    footer.main-footer {
        padding: 16px;
    }

    footer.main-footer .text-right p {
        justify-content: flex-start;
    }

    footer.main-footer .row > div + div {
        margin-top: 6px;
    }

    .card-body {
        padding: 16px;
    }

    .card-header {
        padding: 14px 16px;
    }

    header.page-header h2 {
        font-size: 19px;
    }

    section.dashboard-counts div[class*='col-'] .item {
        margin: 2px;
        padding: 14px;
    }

    .fc-auth__form {
        padding: 30px 24px;
    }

    .fc-auth__brand {
        padding: 28px 24px;
    }
}

@media (max-width: 860px) {
    .fc-auth__card {
        grid-template-columns: 1fr;
    }

    .fc-auth__brand {
        gap: 12px;
    }

    .fc-auth__features,
    .fc-auth__meta {
        display: none;
    }

    .fc-auth__brand p {
        max-width: none;
    }
}

/* -------------------------------------------------- shipment tracking (cltrack) */
.fc-track-search {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
}

.fc-track-search__field {
    position: relative;
    flex: 1 1 280px;
    min-width: 0;
}

.fc-track-search__field > i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--fc-faint);
    font-size: 14px;
    pointer-events: none;
}

.fc-track-search__field .form-control {
    height: 46px;
    padding: 0 16px 0 42px;
    border-radius: 12px;
    font-size: 14px;
    background: #f8fafc;
}

.fc-track-search__field .form-control:focus {
    background: #fff;
}

.fc-track-search__btn {
    flex: 0 0 auto;
    min-width: 168px;
    padding: 12px 28px;
    border-radius: 12px;
    font-size: 13px;
}

.fc-track-search__hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 12px 2px 0;
    color: var(--fc-muted);
    font-size: 12px;
    line-height: 1.55;
}

.fc-track-search__hint i {
    margin-top: 2px;
    color: var(--fc-faint);
}

.fc-track-note {
    display: block;
    margin-top: 16px;
    padding: 13px 16px;
    border: 1px solid #fecdd3;
    border-left: 3px solid var(--fc-primary);
    border-radius: 12px;
    background: var(--fc-primary-soft);
    color: #9f1239;
    font-size: 12.5px;
    line-height: 1.6;
}

.fc-track-note i {
    margin-right: 7px;
}

.fc-track-note strong {
    font-weight: 600;
}

.fc-track-note:empty {
    display: none;
}

/* result card */
.fc-track-card {
    overflow: hidden;
}

.fc-track-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 22px;
    color: #fff;
    background:
        radial-gradient(700px 220px at 100% 0%, rgba(225, 29, 72, .38), transparent 70%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 62%, #241b36 100%);
}

.fc-track-card__id {
    min-width: 0;
}

.fc-track-card__eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.fc-track-card__awb {
    margin: 0;
    color: #fff;
    font-family: Consolas, ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 21px;
    font-weight: 600;
    letter-spacing: .06em;
    line-height: 1.25;
    word-break: break-all;
}

.fc-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 100%;
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: .05em;
    line-height: 1.4;
    text-align: left;
    text-transform: uppercase;
    white-space: normal;
}

.fc-status-pill::before {
    content: "";
    flex: 0 0 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, .22);
}

.fc-status-pill--transit::before {
    background: #facc15;
}

.fc-status-pill--delivered {
    border-color: rgba(74, 222, 128, .48);
    background: rgba(22, 163, 74, .2);
    color: #dcfce7;
}

.fc-status-pill--delivered::before {
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, .24);
}

.fc-status-pill--alert {
    border-color: rgba(248, 113, 113, .5);
    background: rgba(220, 38, 38, .22);
    color: #fee2e2;
}

.fc-status-pill--alert::before {
    background: #f87171;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .24);
}

.fc-track-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--fc-border);
    border-bottom: 1px solid var(--fc-border);
}

.fc-track-summary__item {
    min-width: 0;
    padding: 14px 20px;
    background: #fbfcff;
}

.fc-track-summary__label {
    display: block;
    margin-bottom: 3px;
    color: var(--fc-muted);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.fc-track-summary__value {
    display: block;
    color: var(--fc-ink);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* sender / receiver */
.fc-track-parties {
    margin-bottom: 4px;
}

.fc-party {
    height: 100%;
    padding: 16px 18px;
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    background: #fdfdfe;
}

.fc-party__title {
    margin: 0 0 10px;
    color: var(--fc-muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.fc-party__title i {
    margin-right: 7px;
    color: var(--fc-primary);
    font-size: 12px;
}

.fc-party__name {
    margin: 0 0 4px;
    color: var(--fc-ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.fc-party__addr {
    margin: 0;
    color: var(--fc-body);
    font-size: 12.5px;
    line-height: 1.65;
}

/* movement timeline */
.fc-timeline__title {
    margin: 24px 0 16px;
    color: var(--fc-muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.fc-timeline__title i {
    margin-right: 8px;
    color: var(--fc-primary);
    font-size: 13px;
}

.fc-timeline {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fc-step {
    position: relative;
    padding: 0 0 18px 38px;
}

.fc-step:last-child {
    padding-bottom: 0;
}

.fc-step::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 24px;
    bottom: 2px;
    width: 2px;
    border-radius: 2px;
    background: #e2e8f0;
}

.fc-step:last-child::before {
    display: none;
}

.fc-step__dot {
    position: absolute;
    left: 2px;
    top: 4px;
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 0 4px #fff;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.fc-step__body {
    padding: 11px 16px 12px;
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    background: #f8fafc;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.fc-step:hover .fc-step__body {
    background: #fff;
    border-color: #dbe2ec;
}

.fc-step--latest .fc-step__dot {
    border-color: var(--fc-primary);
    background: var(--fc-primary);
    box-shadow: 0 0 0 5px rgba(225, 29, 72, .14);
}

.fc-step--latest .fc-step__body {
    border-color: var(--fc-primary-line);
    background: #fff;
    box-shadow: 0 14px 30px -26px rgba(225, 29, 72, .6);
}

.fc-step--done .fc-step__dot {
    border-color: #16a34a;
    background: #16a34a;
    box-shadow: 0 0 0 5px rgba(22, 163, 74, .12);
}

.fc-step--done .fc-step__body {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.fc-step--alert .fc-step__dot {
    border-color: #dc2626;
    background: #dc2626;
    box-shadow: 0 0 0 5px rgba(220, 38, 38, .12);
}

.fc-step--alert .fc-step__body {
    border-color: #fecaca;
    background: #fef2f2;
}

.fc-step--latest.fc-step--done .fc-step__body {
    border-color: #86efac;
}

.fc-step--latest .fc-step__status {
    color: var(--fc-primary-600);
}

.fc-step__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.fc-step__status {
    color: var(--fc-ink);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    line-height: 1.5;
}

.fc-step__date {
    color: var(--fc-muted);
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
}

.fc-step__remarks {
    margin: 3px 0 0;
    color: var(--fc-body);
    font-size: 12.5px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.fc-step__branch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    padding: 2px 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: var(--fc-muted);
    font-size: 10.5px;
    font-weight: 500;
}

.fc-step__branch i {
    font-size: 9px;
    color: var(--fc-faint);
}

.fc-step__branch:empty {
    display: none;
}

.fc-timeline-empty {
    display: block;
    padding: 15px 18px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--fc-muted);
    font-size: 12.5px;
    line-height: 1.6;
}

@media (max-width: 991.98px) {
    .fc-track-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fc-party {
        margin-bottom: 12px;
    }

    .fc-track-parties > div:last-child .fc-party {
        margin-bottom: 0;
    }
}

@media (max-width: 575.98px) {
    .fc-track-search__btn {
        width: 100%;
    }

    .fc-track-card__head {
        padding: 18px;
    }

    .fc-track-card__awb {
        font-size: 18px;
    }

    .fc-track-summary__item {
        padding: 12px 14px;
    }

    .fc-step {
        padding-left: 30px;
    }

    .fc-step::before {
        left: 8px;
    }

    .fc-step__dot {
        left: 0;
    }

    .fc-step__date {
        white-space: normal;
    }
}

/* ------------------------------------------------- accessibility / print */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}

@media print {
    #fc-preloader,
    #fc-busy,
    .fc-nav-backdrop,
    header.header,
    nav.navbar,
    nav.side-navbar,
    footer.main-footer {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .card {
        box-shadow: none;
        border-color: #ddd;
    }
}
