:root {
    --ndt-blue: #14785a;
    --ndt-green: #14785a;
    --ndt-navy: #164d3d;
    --ndt-ink: #273e35;
    --native-accent: #14785a;
    --native-bg: #f3f7f5;
    --native-line: #e5ede8;
    --primary-color: #14785a;
}

body.native-app,body.ndt-login {
    background: #f3f7f5;
}

.native-header {
    border-color: #eaf0ec;
}

.native-hero {
    background: #126149;
}

.native-role {
    background: #ffffff13;
}

.native-metric strong {
    color: #14785a;
}

.native-metric-top .ndt-icon {
    color: #639381;
}

.native-metric.is-red strong {
    color: #14785a;
}

.native-menu-icon,.native-menu-icon.red {
    background: #edf6f1;
    color: #17795c;
}

.native-metric.is-pending strong {
    color: #a17825;
}

.native-unread {
    background: #14785a;
}

.native-card {
    border-color: #e2eae5;
    box-shadow: 0 2px 4px #153e2803;
}

.native-tabbar {
    overflow: visible;
    border-radius: 19px 19px 0 0;
    border: 1px solid #e4ece7;
    border-bottom: 0;
    box-shadow: 0 -5px 20px #16472e06;
}

.native-tabbar-inner {
    display: grid;
    grid-template-columns: repeat(5,minmax(0,1fr));
    height: 70px;
    max-width: 600px;
}

.native-tabbar a {
    min-width: 0;
    font-size: 10px;
    gap: 5px;
    padding: 8px 4px;
    color: #83948b;
}

.native-tabbar a.active {
    color: #14785a;
}

.native-tabbar a.native-add-tab {
    align-self: stretch;
    display: flex;
    justify-content: flex-end;
    padding: 0 0 8px;
    position: relative;
    gap: 5px;
    color: #14785a;
}

.native-add-circle {
    width: 54px;
    height: 54px;
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid #f3f7f5;
    border-radius: 50%;
    background: #14785a;
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 5px 14px #14785a2a;
}

.native-tabbar .native-add-circle .ndt-icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.8;
}

.native-add-tab.active .native-add-circle {
    background: #0d5e43;
}

.native-add-label {
    line-height: 18px;
}

.native-app[data-page="request_ndt.index"] .native-main {
    padding-bottom: 120px;
}

.native-primary,.native-app .primary-action,.native-app .btn-submit,.login-submit,.guest-slot button[type=submit] {
    background: #14785a;
}

.native-primary:hover,.login-submit:hover {
    background: #0d654a;
}

.native-record-status .approval-label,.native-record .approve-button {
    color: #1c825f;
}

.native-record .table-button.report {
    color: #14785a;
}

.native-record .table-button {
    min-height: 33px;
}

.native-data-summary strong {
    color: #14785a;
}

.native-search input {
    font-size: 13px;
}

.native-search {
    box-shadow: none;
    border-color: #dde8e1;
    min-height: 45px;
}

.native-filter-row select {
    min-height: 34px;
}

.native-setting-actions button[data-enable-push] {
    background: #14785a;
    border-color: #14785a;
}

.login-story {
    background: #164d3d;
}

.login-story h1 span {
    color: #a3d9be;
}

.login-story p {
    color: #b1cdbd;
}

.login-story .eyebrow {
    color: #99c1ac;
}

.login-features {
    color: #d0e0d7;
}

.login-features .ndt-icon {
    color: #a6d5bc;
}

.login-story-footer {
    color: #a7c4b4;
}

.login-app-badge {
    background: #edf6f1;
    color: #277454;
}

.login-input:focus {
    border-color: #278a66;
    box-shadow: 0 0 0 3px #278a6610;
}

.login-options input {
    accent-color: #14785a;
}

.avatar {
    background: #edf5f0;
    border-color: #dbe9e0;
    color: #326c52;
}

.native-app .form-control:focus,.native-app .form-select:focus {
    border-color: #73b093;
    box-shadow: 0 0 0 3px #14785a12;
}

.native-app .btn-primary {
    background: #14785a;
    border-color: #14785a;
}

.section-number {
    background: #eaf4ee;
    color: #457e61;
}

.native-app .profile-grid .panel-content {
    padding: 4px;
}

.native-account .avatar {
    background: #edf5f0;
}

.ndt-swal {
    border-radius: 15px !important;
    font-family: system-ui,sans-serif !important;
    padding: 20px 18px !important;
}

.ndt-swal .swal2-title {
    font-size: 20px !important;
    color: #294337 !important;
    line-height: 1.4;
}

.ndt-swal .swal2-html-container {
    font-size: 13px !important;
    line-height: 1.7;
    margin: 15px 0 0 !important;
}

.ndt-swal .swal2-actions {
    gap: 8px;
    margin: 20px 0 0;
}

.ndt-swal-confirm {
    background: #14785a !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

.ndt-swal-cancel {
    background: #edf2ee !important;
    color: #536b5e !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    box-shadow: none !important;
}

.swal2-container {
    padding: 14px !important;
}

.swal2-container.swal2-top {
    padding-top: calc(12px + env(safe-area-inset-top)) !important;
}

.swal2-toast .swal2-title {
    font-size: 12px !important;
}

.swal2-toast {
    max-width: calc(100vw - 28px);
    border: 1px solid #e1e9e4;
}

.device-setup {
    border: 0;
    padding: 0;
    border-radius: 18px;
    max-width: 390px;
    width: calc(100% - 28px);
    max-height: calc(100dvh - 28px);
    color: #294337;
    overflow: auto;
    box-shadow: 0 20px 80px #103e2926;
}

.device-setup::backdrop {
    background: #172f2560;
    backdrop-filter: blur(3px);
}

.device-setup-content {
    padding: 27px 23px 22px;
}

.setup-emblem {
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #edf6f0;
    color: #167658;
    margin-bottom: 16px;
}

.setup-emblem .ndt-icon {
    width: 24px;
    height: 24px;
}

.setup-kicker {
    color: #7b9b88;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
    margin-bottom: 6px;
}

.device-setup h2 {
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 9px;
    letter-spacing: -.5px;
}

.device-setup-content>p {
    font-size: 12px;
    color: #8a9b91;
    line-height: 1.8;
}

.setup-permission {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 19px 0;
}

.setup-permission strong {
    font-size: 12px;
    font-weight: 700;
}

.setup-permission p {
    margin: 5px 0 0;
    font-size: 11px;
    color: #95a399;
    line-height: 1.7;
}

.setup-status {
    border-radius: 8px;
    background: #f3f7f4;
    padding: 10px 12px;
    font-size: 10px !important;
}

.setup-actions {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.setup-enable,.setup-later {
    border: 0;
    border-radius: 8px;
    padding: 12px;
    font-size: 12px;
    font-weight: 600;
    min-height: 43px;
}

.setup-enable {
    background: #14785a;
    color: white;
}

.setup-enable:disabled {
    opacity: .6;
}

.setup-later {
    background: #f3f5f3;
    color: #7c9184;
}

.setup-install-help {
    margin: 13px 0 0;
    font-size: 10px !important;
}

@media (max-width:600px) {
    .native-tabbar-inner {
        height: 67px;
    }
    .native-tabbar a {
        font-size: 9px;
    }
    .native-add-circle {
        width: 53px;
        height: 53px;
        bottom: 27px;
    }
    .native-app .native-main {
        padding-bottom: 110px;
    }
    .native-record-head {
        gap: 9px;
    }
    .native-record-head>div:first-child {
        flex: 1;
    }
    .native-record-status {
        max-width: 38%;
    }
    .native-record-status .approval-label {
        text-align: right;
        white-space: normal;
        line-height: 1.5;
    }
    .native-record-meta span {
        overflow-wrap: anywhere;
        max-width: 100%;
    }
    .native-recent-item>div {
        min-width: 0;
    }
    .native-recent-item strong,.native-recent-item small {
        overflow-wrap: anywhere;
    }
    .native-card.native-recent-item {
        gap: 10px;
    }
    .native-app input,.native-app select,.native-app textarea,.login-input {
        font-size: 16px !important;
    }
    .native-search input {
        font-size: 14px !important;
    }
    .native-header h1 {
        max-width: 65%;
    }
    .native-icon-button,.header-back {
        width: 38px;
        height: 38px;
    }
    .native-app .modal-body {
        max-height: calc(100dvh - 170px);
    }
    .native-app .calendar-wrapper {
        overflow: hidden;
    }
    .fc-toolbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
    }
    .fc-toolbar .fc-left,.fc-toolbar .fc-right {
        float: none;
    }
    .fc-toolbar .fc-clear {
        display: none;
    }
    .fc-toolbar h2 {
        font-size: 15px;
    }
    .fc .fc-button {
        font-size: 10px;
        padding: 0 7px;
    }
    .device-setup h2 {
        font-size: 21px;
    }
}

@media (min-width:700px) and (max-width:1050px) {
    .native-header-inner,.native-main {
        max-width: 850px;
    }
    .native-summary {
        grid-template-columns: repeat(4,minmax(0,1fr));
    }
    .native-metric-top {
        font-size: 10px;
        gap: 6px;
    }
    .native-metric {
        padding: 16px 13px;
    }
    .native-dashboard-columns {
        gap: 17px;
    }
    .native-record-footer {
        flex-direction: column;
        align-items: stretch;
    }
    .native-record-footer .table-actions {
        justify-content: flex-end;
    }
    .native-app .profile-grid {
        grid-template-columns: 1fr;
    }
    .native-app .analytics-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width:360px) {
    .native-tabbar a {
        font-size: 8px;
    }
    .native-add-circle {
        width: 50px;
        height: 50px;
    }
    .device-setup-content {
        padding: 23px 18px 18px;
    }
    .native-data-summary strong {
        font-size: 16px;
    }
    .native-record-status {
        max-width: 40%;
    }
    .fc-toolbar h2 {
        font-size: 13px;
    }
    .fc .fc-button {
        padding: 0 4px;
    }
    .native-filter-row {
        gap: 12px;
    }
}

@media (prefers-reduced-motion:reduce) {
    .device-setup,.swal2-popup {
        animation: none !important;
        transition: none !important;
    }
}

.native-app .modal-header.bg-primary {
    background: #14785a !important;
    color: white !important;
}

.native-app .modal-header.bg-primary .btn-close {
    filter: brightness(0) invert(1);
}

.ndt-swal.swal2-toast {
    padding: 12px 14px !important;
}

.native-search input {
    font-size: 16px !important;
}

.native-tabbar::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -23px;
    transform: translateX(-50%);
    width: 82px;
    height: 44px;
    border-radius: 44px 44px 0 0;
    background: #fff;
    border: 1px solid #e4ece7;
    border-bottom: 0;
    box-shadow: 0 -5px 15px #16472e04;
    pointer-events: none;
}

.native-tabbar-inner {
    position: relative;
    z-index: 1;
}

.native-add-circle {
    border-color: white;
}
