:root {
    --swat-primary: #1769aa;
    --swat-dark: #102a43;
    --swat-bg: #f4f7fb;
    --swat-text: #263238;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    color: var(--swat-text);
}


/* =========================
   LOGIN
   ========================= */

.login-page {

    min-height: 100vh;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #edf5ff 0%,
            #f7f9fc 100%
        );
}


.login-wrapper {

    width: 100%;

    max-width: 420px;
}


.login-card {

    background: #ffffff;

    padding: 34px 28px;

    border-radius: 22px;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.09);
}


.swat-logo {

    font-size: 46px;

    font-weight: 800;

    letter-spacing: 5px;

    color: var(--swat-dark);
}


.swat-subtitle {

    font-size: 13px;

    font-weight: 600;

    letter-spacing: 1px;

    color: #718096;
}


.login-title {

    margin-top: 8px;

    font-size: 14px;

    color: #9aa5b1;
}


.form-control,
.input-group-text {

    min-height: 48px;
}


.form-control {

    border-radius: 10px;
}


.input-group-text {

    background: #f8fafc;
}


.btn-swat {

    min-height: 50px;

    border: none;

    border-radius: 12px;

    background: var(--swat-primary);

    color: #ffffff;

    font-weight: 600;
}


.btn-swat:hover {

    background: #12578d;

    color: #ffffff;
}


.login-footer {

    text-align: center;

    margin-top: 18px;

    font-size: 13px;

    color: #8a94a6;
}


/* =========================
   SWAT APPLICATION
   ========================= */

.swat-body {
    min-height: 100vh;
    background: #f5f7fa;
    padding-bottom: 75px;
}


/* TOP BAR */

.swat-topbar {
    height: 70px;

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 24px;

    border-bottom: 1px solid #e8edf2;

    position: sticky;
    top: 0;

    z-index: 1000;
}


.swat-brand {
    display: flex;
    align-items: baseline;
    gap: 8px;
}


.swat-brand-name {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--swat-dark);
}


.swat-brand-sub {
    font-size: 11px;
    font-weight: 600;
    color: #8995a3;
    letter-spacing: 1px;
}


.swat-user {
    display: flex;
    align-items: center;
    gap: 12px;
}


.swat-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #344054;
}


.swat-user-btn {
    width: 38px;
    height: 38px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #52606d;
    background: #f2f5f8;

    text-decoration: none;
}


.swat-user-btn:hover {
    color: var(--swat-primary);
}


/* CONTENT */

.swat-content {
    max-width: 1200px;

    margin: 0 auto;

    padding: 30px 24px;
}


.swat-welcome {
    margin-bottom: 30px;
}


.swat-welcome-small {
    font-size: 13px;
    color: #8a94a6;
    margin-bottom: 4px;
}


.swat-welcome h1 {
    margin: 0;

    font-size: 30px;
    font-weight: 700;

    color: var(--swat-dark);
}


.swat-welcome p {
    margin: 5px 0 0;

    color: #718096;

    font-size: 14px;
}


/* SECTION */

.swat-section-title {
    margin-bottom: 12px;

    font-size: 13px;

    font-weight: 700;

    color: #7b8794;

    text-transform: uppercase;

    letter-spacing: .7px;
}


/* MODULE GRID */

.swat-card-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}


.swat-module-card {

    min-height: 92px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 16px;

    background: #ffffff;

    border: 1px solid #e9eef3;

    border-radius: 16px;

    text-decoration: none;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}


.swat-module-card:hover {

    transform: translateY(-2px);

    border-color: #d5dee7;

    box-shadow:
        0 8px 24px rgba(16, 42, 67, .08);
}


.swat-module-icon {

    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 14px;

    font-size: 22px;

    background: #eef5fb;

    color: var(--swat-primary);
}


.swat-module-info {
    flex: 1;
}


.swat-module-title {

    font-size: 15px;

    font-weight: 700;

    color: #243b53;
}


.swat-module-sub {

    margin-top: 3px;

    font-size: 12px;

    color: #8a94a6;
}


.swat-arrow {

    color: #b0bac5;

    font-size: 16px;
}


/* BOTTOM NAV */

.swat-bottom-nav {

    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    height: 64px;

    background: rgba(255,255,255,.96);

    backdrop-filter: blur(10px);

    border-top: 1px solid #e6ebf0;

    display: flex;

    align-items: center;

    justify-content: space-around;

    z-index: 1100;
}


.swat-bottom-nav a {

    flex: 1;

    height: 100%;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 3px;

    text-decoration: none;

    color: #8a94a6;

    font-size: 11px;

    font-weight: 600;
}


.swat-bottom-nav a i {

    font-size: 19px;
}


.swat-bottom-nav a.active {

    color: var(--swat-primary);
}


/* DESKTOP */

@media (min-width: 992px) {

    .swat-body {
        padding-bottom: 0;
    }

    .swat-bottom-nav {
        display: none;
    }

    .swat-card-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


/* MOBILE */

@media (max-width: 575px) {

    .swat-topbar {
        height: 62px;

        padding: 0 16px;
    }

    .swat-brand-name {
        font-size: 21px;
    }

    .swat-brand-sub {
        display: none;
    }

    .swat-user-name {
        display: none;
    }

    .swat-content {
        padding: 24px 16px;
    }

    .swat-welcome h1 {
        font-size: 25px;
    }

    .swat-card-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .swat-module-card {
        min-height: 78px;
        padding: 13px;
    }

    .swat-module-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        font-size: 19px;
    }

}
/* =========================================================
   SWAT SMART MAIN MENU
========================================================= */

.swat-main {
    background: #f4f7fb;
    color: #263238;
    min-height: 100vh;
}


/* TOP BAR */

.swat-topbar {
    height: 70px;
    background: #ffffff;
    border-bottom: 1px solid #e6ebf1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    position: sticky;
    top: 0;
    z-index: 1000;
}


.swat-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}


.swat-brand-icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    background: #1769aa;
    color: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
}


.swat-brand-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .3px;
}


.swat-brand-sub {
    font-size: 12px;
    color: #7b8794;
}


.swat-user-area {
    display: flex;
    align-items: center;
    gap: 15px;
}


.swat-user-name {
    font-size: 14px;
    font-weight: 600;
}


.swat-logout {
    width: 38px;
    height: 38px;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #52606d;
    text-decoration: none;

    transition: .2s;
}


.swat-logout:hover {
    background: #f1f5f9;
    color: #d32f2f;
}


/* MAIN */

.swat-main-content {
    max-width: 1250px;
    margin: 0 auto;

    padding: 35px 28px 80px;
}


.swat-page-title {
    font-size: 28px;
    font-weight: 700;
    color: #102a43;
}


.swat-page-subtitle {
    margin-top: 4px;
    color: #7b8794;
    font-size: 14px;
}


/* SEARCH */

.swat-menu-search {
    margin-top: 28px;

    height: 52px;

    background: #ffffff;

    border: 1px solid #dfe7ef;
    border-radius: 14px;

    display: flex;
    align-items: center;

    padding: 0 17px;

    box-shadow: 0 2px 8px rgba(16,42,67,.04);
}


.swat-menu-search i {
    color: #7b8794;
    font-size: 18px;
}


.swat-menu-search input {
    width: 100%;

    border: none;
    outline: none;

    background: transparent;

    padding-left: 12px;

    font-size: 15px;
}


.swat-menu-search input::placeholder {
    color: #9aa5b1;
}


/* GROUP */

.swat-menu-group {
    margin-top: 35px;
}


.swat-group-title {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 14px;

    color: #52606d;

    font-size: 13px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .7px;
}


.swat-group-title i {
    font-size: 15px;
}


/* GRID */

.swat-menu-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}


/* CARD */

.swat-menu-card {
    min-height: 105px;

    background: #ffffff;

    border: 1px solid #e5ebf1;
    border-radius: 16px;

    padding: 18px;

    display: flex;
    align-items: center;

    gap: 14px;

    text-decoration: none;
    color: inherit;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease;
}


.swat-menu-card:hover {
    transform: translateY(-2px);

    border-color: #b9d4ea;

    box-shadow:
        0 8px 22px rgba(16,42,67,.08);
}


.swat-menu-icon {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border-radius: 13px;

    background: #eaf3fb;
    color: #1769aa;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
}


.swat-menu-info {
    min-width: 0;
    flex: 1;
}


.swat-menu-name {
    font-size: 15px;
    font-weight: 700;

    color: #102a43;
}


.swat-menu-description {
    margin-top: 4px;

    font-size: 12px;

    color: #8291a1;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.swat-menu-arrow {
    color: #b0bac5;
    font-size: 13px;
}


/* NO RESULTS */

.swat-no-results {
    display: none;

    text-align: center;

    padding: 70px 20px;

    color: #7b8794;
}


.swat-no-results i {
    display: block;

    font-size: 35px;

    margin-bottom: 12px;
}


.swat-no-results div {
    font-weight: 600;
}


.swat-no-results small {
    display: block;
    margin-top: 5px;
}


/* MOBILE NAV */

.swat-mobile-nav {
    display: none;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .swat-menu-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .swat-topbar {
        height: 62px;
        padding: 0 15px;
    }


    .swat-brand-icon {
        width: 38px;
        height: 38px;

        border-radius: 10px;
    }


    .swat-brand-name {
        font-size: 14px;
    }


    .swat-brand-sub {
        font-size: 10px;
    }


    .swat-user-name {
        display: none;
    }


    .swat-main-content {
        padding: 24px 15px 90px;
    }


    .swat-page-title {
        font-size: 23px;
    }


    .swat-menu-search {
        margin-top: 22px;
    }


    .swat-menu-group {
        margin-top: 28px;
    }


    .swat-menu-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }


    .swat-menu-card {
        min-height: 82px;

        padding: 14px;
    }


    .swat-menu-icon {
        width: 44px;
        height: 44px;

        flex-basis: 44px;

        font-size: 19px;
    }


    .swat-menu-name {
        font-size: 14px;
    }


    .swat-menu-description {
        font-size: 11px;
    }


    /* MOBILE BOTTOM NAV */

    .swat-mobile-nav {
        position: fixed;

        display: flex;

        left: 0;
        right: 0;
        bottom: 0;

        height: 66px;

        background: #ffffff;

        border-top: 1px solid #e4e9ef;

        z-index: 1100;

        box-shadow:
            0 -4px 15px rgba(16,42,67,.06);
    }


    .swat-mobile-nav a {
        flex: 1;

        display: flex;

        flex-direction: column;

        align-items: center;
        justify-content: center;

        gap: 3px;

        color: #7b8794;

        text-decoration: none;

        font-size: 10px;

        font-weight: 600;
    }


    .swat-mobile-nav a i {
        font-size: 19px;
    }


    .swat-mobile-nav a.active {
        color: #1769aa;
    }

}
/* =========================================================
   CUSTOMER MASTER
========================================================= */

.customer-card {
    display: flex;
    align-items: center;
    gap: 15px;

    background: #ffffff;

    border: 1px solid #e5ebf1;
    border-radius: 15px;

    padding: 15px 17px;
    margin-bottom: 10px;

    text-decoration: none;
    color: inherit;

    transition: .18s;
}

.customer-card:hover {
    border-color: #b9d4ea;
    box-shadow: 0 7px 20px rgba(16,42,67,.07);
    transform: translateY(-1px);
}

.customer-icon {
    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    border-radius: 12px;

    background: #eaf3fb;
    color: #1769aa;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 19px;
}

.customer-info {
    flex: 1;
    min-width: 0;
}

.customer-name {
    font-weight: 700;
    color: #102a43;
    font-size: 15px;
}

.customer-code {
    color: #1769aa;
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
}

.customer-contact {
    color: #8291a1;
    font-size: 12px;
    margin-top: 5px;
}

.customer-status {
    flex: 0 0 auto;
}

.customer-arrow {
    color: #b0bac5;
    font-size: 13px;
}

@media (max-width: 600px) {

    .customer-card {
        padding: 14px;
        gap: 12px;
    }

    .customer-status {
        display: none;
    }

    .customer-icon {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .customer-name {
        font-size: 14px;
    }

}

/* =========================================================
   CUSTOMER FORM
========================================================= */

.customer-form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.customer-back-btn {
    border: 1px solid #dfe5eb;
}

.customer-form-section {
    background: #ffffff;
    border: 1px solid #e5ebf1;
    border-radius: 16px;
    padding: 22px;
    margin-bottom: 16px;
}

.customer-section-title {
    display: flex;
    align-items: center;
    gap: 9px;

    font-size: 15px;
    font-weight: 700;

    color: #102a43;

    margin-bottom: 20px;
}

.customer-section-title i {
    color: #1769aa;
    font-size: 18px;
}

.customer-form-section .form-label {
    font-size: 13px;
    font-weight: 600;
    color: #52606d;
    margin-bottom: 6px;
}

.customer-form-section .form-control {
    min-height: 44px;
    border-color: #dfe5eb;
    border-radius: 9px;
}

.customer-form-section .form-control:focus {
    border-color: #1769aa;
    box-shadow: 0 0 0 3px rgba(23,105,170,.10);
}

.customer-status-toggle .btn {
    min-height: 44px;
    border-radius: 9px;
}

.customer-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    padding: 5px 0 30px;
}

.customer-form-actions .btn {
    min-height: 44px;
    padding-left: 20px;
    padding-right: 20px;
}


@media (max-width: 600px) {

    .customer-form-header {
        margin-bottom: 18px;
    }

    .customer-form-section {
        padding: 17px;
        border-radius: 14px;
    }

    .customer-form-actions {
        position: sticky;
        bottom: 66px;

        background: #f4f7fb;

        padding: 12px 0;

        z-index: 900;
    }

    .customer-form-actions .btn {
        flex: 1;
    }

}

/* =========================================================
   MENU FAVOURITES
========================================================= */

.swat-menu-card-wrapper {
    position: relative;
}


.swat-menu-card-wrapper .swat-menu-card {
    padding-right: 48px;
}


.swat-favourite-form {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
}


.swat-favourite-btn {
    width: 30px;
    height: 30px;

    border: none;
    background: transparent;

    color: #b8c1cb;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    cursor: pointer;

    transition: .18s;
}


.swat-favourite-btn:hover {
    background: #fff7df;
    color: #e0a800;
}


.swat-favourite-btn.active {
    color: #e0a800;
}


.swat-favourites-group {
    margin-top: 28px;
    margin-bottom: 10px;
}


.swat-favourites-group
.swat-group-title {
    color: #b07a00;
}


@media (max-width: 600px) {

    .swat-favourite-form {
        top: 9px;
        right: 8px;
    }

}

/* =========================================================
   HANDLING RATE MASTER
========================================================= */

.hanrate-list {
    margin-top: 18px;
}

.hanrate-card {
    display: flex;
    align-items: center;
    gap: 16px;

    background: #ffffff;

    border: 1px solid #e5ebf1;
    border-radius: 15px;

    padding: 14px 17px;
    margin-bottom: 10px;

    text-decoration: none;
    color: inherit;

    transition: .18s;
}

.hanrate-card:hover {
    border-color: #b9d4ea;
    box-shadow: 0 7px 20px rgba(16,42,67,.07);
    transform: translateY(-1px);
}


/* DATE */

.hanrate-date {
    width: 54px;
    flex: 0 0 54px;

    text-align: center;

    border-right: 1px solid #edf1f5;
    padding-right: 14px;
}

.hanrate-date-day {
    font-size: 21px;
    line-height: 21px;
    font-weight: 700;
    color: #102a43;
}

.hanrate-date-month {
    font-size: 11px;
    font-weight: 700;
    color: #1769aa;
    text-transform: uppercase;
}

.hanrate-date-year {
    font-size: 10px;
    color: #9aa5b1;
}


/* INFO */

.hanrate-info {
    flex: 1;
    min-width: 0;
}

.hanrate-item {
    font-size: 15px;
    font-weight: 700;
    color: #102a43;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hanrate-customer {
    margin-top: 4px;

    font-size: 12px;
    color: #6b7c8d;
}

.hanrate-customer i {
    color: #1769aa;
    margin-right: 3px;
}

.hanrate-basis {
    display: inline-block;

    margin-top: 6px;

    padding: 3px 8px;

    border-radius: 6px;

    background: #eef5fb;
    color: #1769aa;

    font-size: 10px;
    font-weight: 700;
}


/* VALUES */

.hanrate-values {
    display: flex;
    align-items: center;
    gap: 20px;

    flex: 0 0 auto;
}

.hanrate-values div {
    text-align: center;
}

.hanrate-values small {
    display: block;

    font-size: 9px;
    color: #8b98a6;
    font-weight: 600;
}

.hanrate-values strong {
    display: block;

    margin-top: 2px;

    font-size: 13px;
    color: #102a43;
}

.hanrate-main-rate strong {
    color: #1769aa;
}


/* ARROW */

.hanrate-arrow {
    color: #b0bac5;
    font-size: 13px;
}


/* MOBILE */

@media (max-width: 600px) {

    .hanrate-card {
        gap: 11px;
        padding: 13px;
    }

    .hanrate-date {
        width: 44px;
        flex-basis: 44px;
        padding-right: 10px;
    }

    .hanrate-date-day {
        font-size: 18px;
    }

    .hanrate-item {
        font-size: 14px;
    }

    .hanrate-values {
        gap: 7px;
    }

    .hanrate-values strong {
        font-size: 11px;
    }

    .hanrate-values small {
        font-size: 8px;
    }

    .hanrate-arrow {
        display: none;
    }

}
/* =========================================================
   HANDLING RATE FORM
========================================================= */

.hanrate-form-hint {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-top: 18px;

    padding: 11px 13px;

    background: #f4f8fc;

    border-radius: 9px;

    color: #68798a;

    font-size: 12px;
}

.hanrate-form-hint i {
    color: #1769aa;
    font-size: 15px;
}
