/* Pakdan Automation mobile adaptations */
@media (max-width: 782px) {
    body.admin-bar.pkdat-app-mode .pkd-portal-topbar { top: 46px !important; }
}

@media (max-width: 720px) {
    body.pkdat-app-mode .pkd-portal-topbar {
        min-height: 104px !important;
    }
    body.pkdat-app-mode .pkd-portal-topbar-inner {
        min-height: 104px !important;
        padding: 8px 10px !important;
        gap: 7px !important;
        align-items: stretch !important;
        flex-direction: column !important;
    }
    body.pkdat-app-mode .pkd-portal-welcome {
        min-width: 0;
        min-height: 36px !important;
        width: 100%;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px;
        font-size: 11px !important;
    }
    body.pkdat-app-mode .pkd-portal-welcome::before {
        font-size: 13px;
        flex: 0 0 auto;
    }
    body.pkdat-app-mode .pkd-portal-actions {
        width: 100%;
        padding-bottom: 4px;
    }
    body.pkdat-app-mode .pkd-portal-link,
    body.pkdat-app-mode .pkd-portal-logout {
        min-height: 34px !important;
        padding: 6px 10px !important;
        font-size: 11.5px !important;
        flex: 0 0 auto;
    }
    body.pkdat-app-mode .pkd-portal-link--home {
        padding-right: 32px !important;
    }
    body.pkdat-app-mode .pkd-app,
    body.pkdat-app-mode .pkd-wrap {
        padding: 12px !important;
    }
    body.pkdat-app-mode .pkd-shell-header {
        min-height: 0 !important;
        padding: 15px !important;
        border-right-width: 3px;
    }
    body.pkdat-app-mode .pkd-card { padding: 14px !important; }

    body.pkdat-automation-home .pkd-ah-layout {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    body.pkdat-automation-home .pkd-ah-intro {
        min-height: 44vh;
        padding: 42px 24px 34px !important;
    }
    body.pkdat-automation-home .pkd-ah-title {
        font-size: clamp(31px, 10vw, 44px) !important;
    }
    body.pkdat-automation-home .pkd-ah-description {
        font-size: 14px !important;
        line-height: 1.9 !important;
    }
    body.pkdat-automation-home .pkd-ah-features { margin-top: 22px !important; }
    body.pkdat-automation-home .pkd-ah-login-side {
        padding: 26px 16px 46px !important;
        border-right: 0 !important;
        border-top: 1px solid rgba(23,107,56,.08) !important;
    }
    body.pkdat-automation-home .pkd-ah-card {
        max-width: 520px !important;
        padding: 24px 19px !important;
    }
}

@media (max-width: 430px) {
    body.pkdat-app-mode .pkd-portal-welcome {
        font-size: 10.5px !important;
    }
    body.pkdat-app-mode .pkd-portal-welcome::before {
        font-size: 12px;
    }
    body.pkdat-app-mode .pkd-portal-link,
    body.pkdat-app-mode .pkd-portal-logout {
        font-size: 11px !important;
    }
}
